Jump to content

scripting - activate/deactivate


Recommended Posts

Posted

Hello! Lately i try do some map modding and I have a teleport which leads to the duel7 map. I would like to make this teleport to turn on/off with a button. So instead of entities I tried with icarus and while I can deactivate the teleport I cannot activate it again. 

 

Here is the code:

 

icarus.jpg
 
duel7_tele_parm -> trigger_multiple (for button) which targets a target_scriptrunner running the script above
duel7_tele -> trigger_multiple for teleport, targetting a target_teleporter which is pointed to a misc_teleporter_dest
 
Can someone help me?
Posted

I'm checking the parm1 on duel7_tele_parm  and ye I think you are right. But if the checking is wrong  why the else part worked with the deactivation?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...