darthsLair on 1/2/2015 at 05:19
Is there a way to synchronize a lever with a lock box? I have a secret switch that I want to open a door controlled via a lock link to a lock box. I use data 1 on the lock box (s) and always use the lock link so the ai can use the door.
Rigging up the lever to the door messes up the ai's ability to properly use the door.
I am searching for the proper way, so things won't get messed up for the player/ai's.
Question: Similar to a frob proxy, how do I sync a lever with a lock box?
qolelis on 1/2/2015 at 05:48
One thing you could do (assuming I understand your request correctly) is let the lever lock/unlock the lockbox and also give each AI, who needs to be able to pass through, a key to the lockbox:
* CD-link the lever to the lockbox (I tested with Lockbox (-4587)) and give the lockbox the Lock script.
The Lock script sets the lock property to true or false in response to TurnOn and TurnOff. I also put the lever in its on state.
* Create a Contains-link from the AI to a key which unlocks the lockbox to make the AI able to open the door and pass through.
This worked in my test setup at least.
Edit:
I forgot the other direction:
1. Put The TrigUnlock script on the lockbox.
2. CD-link the lockbox to an inverter and the inverter to the lever.
darthsLair on 1/2/2015 at 06:11
Thankyou qolelis, I will check it out. :thumb:
Edit:Perfect! Thanks again qolelis