Lever
The lever script allows you to create levers and HingeDrive joints that utilise events at certain points.
Some of the fields used by Lever is a subsidary of HingeDrive. Therefore, only “Lever” fields will be listed except for the “Angles config values”, as there will be information on how events are played with these.
Lever Value Fields
Field | Description |
---|---|
Dead Zone | Allows the lever to have a “deadzone” where the angle of the “up” and “down” states is further away from the Minimum/Maximum angle |
Invert Output | Inverts “Up” and “Down” |
Events
This does not cover HingeDrive events, only events used by Lever.
Event | Description |
---|---|
Lever Up Event | This is the event that plays when the lever is pushed up, to the “Min Angle” |
Lever Down Event | This is the event that plays when the lever is pushed down, to the “Max Angle” |
Lever Analog Event | This event plays during any analog event. |