Frictional Games Forum (read-only)

Full Version: Lowering bridge entity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hello, I need help with a script to lower a bridge(The one hanging from chains in the roof). I plan to use 3 valves to be turned and you have to turn them all within 1 minute to get the bridge to lower itself. The main problem is as the player is nearby he would probably have to actually see the bridge go down. As I have no idea how I would make the entity move in to place without the easy disble/enable script.

I know threads like these are frowned upon but I really have no idea other than the SetMoveObjectState or SetMoveObjectStateExt which i'm not sure even works on that bridge. Help appreciated! Smile
(09-23-2011, 08:33 PM)Rownbear Wrote: [ -> ]I know threads like these are frowned upon but I really have no idea other than the SetMoveObjectState or SetMoveObjectStateExt which i'm not sure even works on that bridge. Help appreciated! Smile

Either one would work for raising or lowering the bridge.
I may be incorrect, but I believe SetMoveObjectState makes the movement happen instantly. You would need SetMoveObjectStateExt to have it visibly raise or lower.

Also, make sure you test it thoroughly. I'm not sure which direction (up/down) is connected to which state (0/1) so you'll have to test it and find out. Read up on the wiki functions page to see what each parameter corresponds to, and simply test it out with different values until you come up with a satisfactory result. Also, you can check the cistern entrance script file from The Dark Descent and mimic their methods. Good luck.