Lever/Switch Activating Event
by Chad Kilgore · in Torque Game Engine · 05/14/2007 (11:15 am) · 1 replies
What I am trying to is create have a lever that players could activate, which would, in turn, cause another event to occur. For example, a player pulls the lever and a lifeboat goes down; when he/she pulls it again the lifeboat goes up.
Does anybody have any suggestions on how I could/should implement this? Should I model the objects as separate objects? Should I have an action on the lever call animation which then would call an animation for the lifeboat? (If I were to this way, wouldn't the bounding box for the lifeboat have to be huge to include the animation?) Thanks for the help.
Does anybody have any suggestions on how I could/should implement this? Should I model the objects as separate objects? Should I have an action on the lever call animation which then would call an animation for the lifeboat? (If I were to this way, wouldn't the bounding box for the lifeboat have to be huge to include the animation?) Thanks for the help.
Torque Owner Jules
Something2Play
Create a trigger, once the player enters the trigger area surrounding the switch it is toggled (if you have an animated DTS)
Option 2:
Create a trigger, once the player enters the trigger area surrounding the switch, add an on mouse click event, so that it then toggles your animation and calls another function.
Option 3:
As option 2, but mapping a binded keypress for example pressing U for USE instead of a mouse click.