Morabis Posted January 14, 2014 Posted January 14, 2014 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: duel7_tele_parm -> trigger_multiple (for button) which targets a target_scriptrunner running the script aboveduel7_tele -> trigger_multiple for teleport, targetting a target_teleporter which is pointed to a misc_teleporter_dest Can someone help me?
mrwonko Posted January 14, 2014 Posted January 14, 2014 Whose parm1 are you checking? Shouldn't the whole check be inside the affect duel7_tele_parm block? Morabis likes this
Morabis Posted January 14, 2014 Author Posted January 14, 2014 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?
redsaurus Posted January 14, 2014 Posted January 14, 2014 Deactivation worked because the second block happens whenever parm1 on duel7_tele_parm is not 1, and with what you did parm1 was always 0 (i.e. not 1). Morabis likes this
Morabis Posted January 14, 2014 Author Posted January 14, 2014 My bad you're right. Including all with another affect block solved the problem. Many thanks!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now