(11-26-2014, 08:31 AM)Mudbill Wrote: Is this callback added to all the lever_machine_lever entities? Anything else?
Pulling all lever_machine_lever to state -1 will activate the main code, which plays some sounds and changes the elevator_lever entity. To prevent this some happening again, interaction is disabled for these levers. The last part will only activate if elevator_lever_2 is already set to state -1 before the other levers are set, or else they will remain uninteractable and can not call the code. Because elevator_lever_2 is enabled after pulling the other levers, this can cause it to not be finished, unless this callback is also added to the elevator_lever_2, however if so, it will also run the main code again once pulled, because even though the other levers are uninteractable, they're still in state -1 which will pass the code.
Sounds like script-ception. o.o The callbacks are only on the lever_machine_levers.
And it still doesn't do anything but play the sound.
(11-26-2014, 08:44 AM)Romulator Wrote: Welp, I know what the problem is. Now I just have to fix it and reupload it. (For the level change, not the sounds).
Assuming that elevator_lever_2 is the one which you need to pull down to start the transition to the next level through the fade.
Yes. the elevator_lever_2 starts the level transition. I think I messed up though on the callback state (the lever should be pulled down and not up; I think it's script to be pulled up.)