Lever Puzzle Sys - Setup
Basic Steps
Lever System Objects Setup
I have created a basic setup for organising the system, an empty gameobject to hold all of the lever assets:
LeverController
SwitchBox_Model
Lever Controller Setup
In-game order (Used for debugging ONLY):
Player Order
This will be used to keep track of the lever pulled in an order, only used for visual reference when debugged or testing
Custom Order:
Custom Order
This is the order that the code or sequence should go, based on your levers
Pull Limit:
Pull Limit
Match this with the number of the power levers you do have in your lever controller object
Timer before being allowed to pull the next lever:
Wait Timer
The amount of seconds to wait for the you can pull a lever after just interacting with one
Add all of the required objects to the array:
Have a size of 7 (By default)
Add each "Power Level", "Test Button" and "Reset Button" for this set
Control Box Switches:
Ready Switch
Add the "Ready_Switch01" from this set here
Limit Reached Switch
Add the "LimitReached_Switch02" from this set here
Accepted Switch
Add the "Accepted_Switch03" from this set here
Resetting Switch
Add the "Resetting_Switch04" from this set here
Control Unit Lights:
Ready Light
Add the "Ready_Light1" from this set here
Limit Reached Light
Add the "LimitReached_Light2" from this set here
Accepted Light
Add the "Accepted_Light3" from this set here
Resetting Light
Add the "Resetting_Light1" from this set here
Accept / Reset Buttons:
Red Button 1
Add the "Test_Button1" from this set here
Red Button 2
Add the "Reset_Button2" from this set here
Switch Object - Animation Names:
Switch On Name
Add the on switch animation name. Default: "Switch_On"
Switch Off Name
Add the off switch animation name. Default: "Switch_Off"
Red Button Name
Add the button push animation name. Default: "RedButton_Push"
Audio Sounds:
Switch On Name
SwitchPull
Switch Off Name
SwitchEcho
Red Button Name
DoorBuzz
Unlock Events:
Power Lever Setup
Test & Reset Buttons
Do the same as above but set the "ObjectType" in the "LeverItemController" script to either "Test Button" or "Reset Button" depending on the button you want to add!
Default Controls
Last updated
Was this helpful?