Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Elevator Lever to Level Transition
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#8
RE: Elevator Lever to Level Transition

(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.)

11-26-2014, 08:48 AM
Find


Messages In This Thread
Elevator Lever to Level Transition - by AGP - 11-26-2014, 06:39 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 07:51 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 08:48 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 08:38 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 08:57 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 09:03 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 09:13 AM
RE: Elevator Lever to Level Transition - by AGP - 11-26-2014, 09:36 AM



Users browsing this thread: 1 Guest(s)