Hi!
Got a problem with the Switch entity and cannot find a solution for now.
I'm trying to create an elevator with Switches to use before being teleported to another map.
On Map A
• I place a Switch "off" and set a trigger that goes "on" when used and then teleport user to Map B (and added an Exit Grid below it)
• I added an INIT "Always" to set the Switch "off" by default.
On Map B
• I place a Switch "off" and set a trigger that goes "on" when used and then teleport user to Map A(and added an Exit Grid below it)
• I added an INIT "Always" to set the Switch "off" by default.
When I test it, it does:
- Player spawns on Map A, uses the Switch and is teleported to Map B.
- Player uses the Switch on Map B, and then I got a teleport loop and automatically teleport to Map A then Map B then Map A, etc...
My thought is that the Switches stay "on" after leaving the map but I don't understand why since I added:
- An INIT "Always" to set them "off" by default.
- Also added as "Action" (to try but no result) after using the Switches to set them back "off".
- I tried the "Nuke triggers on Exit", but it works once (from Map B to Map A) but then when I move on the Exit Grid I got kicked to the Campaign Map
Any ideas to make them properly work?
Got a problem with the Switch entity and cannot find a solution for now.
I'm trying to create an elevator with Switches to use before being teleported to another map.
On Map A
• I place a Switch "off" and set a trigger that goes "on" when used and then teleport user to Map B (and added an Exit Grid below it)
• I added an INIT "Always" to set the Switch "off" by default.
On Map B
• I place a Switch "off" and set a trigger that goes "on" when used and then teleport user to Map A(and added an Exit Grid below it)
• I added an INIT "Always" to set the Switch "off" by default.
When I test it, it does:
- Player spawns on Map A, uses the Switch and is teleported to Map B.
- Player uses the Switch on Map B, and then I got a teleport loop and automatically teleport to Map A then Map B then Map A, etc...
My thought is that the Switches stay "on" after leaving the map but I don't understand why since I added:
- An INIT "Always" to set them "off" by default.
- Also added as "Action" (to try but no result) after using the Switches to set them back "off".
- I tried the "Nuke triggers on Exit", but it works once (from Map B to Map A) but then when I move on the Exit Grid I got kicked to the Campaign Map
Any ideas to make them properly work?
Last edited: