This would be a more involved process as it would require some linkage to the signal system. Here is a possible entry for the drawbridge that follows the current definitions for the turntables.
Drawbridge( WFile ( "w-######+######.w" ) UiD ( # ) XOffset ( # ) YOffset ( # ) ZOffset ( # ) Name ( "" ) Animation ( "SWINGSPAN" ) AnimationTime ( seconds ) SoundFile ( "filename" ) DefaultClosed ( "true/false" ) ClosedCLEAR( # RadioFile ( # "filename" ) SignalId ( # ) ... ) ClosedSTOP( # RadioFile ( # "filename" ) SignalId ( # ) ... ) SignalDelay ( seconds ) )
WFile()/Uid()/XOffset()/YOffset()/ZOffset() - would be the same as turntables.
Name() - for display purposes (those pesky humans).
Animation() - as with turntables, the name of the part to be moved.
AnimationTime() - how long should the span take to move from open-closed.
DefaultClosed() - is the shape set up to be closed by default.
ClosedCLEAR() - list of signals to be set to CLEAR when closed. All signals have a unique TrItemId() number which would allow for the drawbridge state to be linked to the signal system.
RadioFile () - cab radio message to play where # is:
<0 - seconds before animation starts
0 - as animation occurs
>0 - seconds after animation ends
ClosedSTOP() - list of signals to be set to STOP when closed.
SignalDelay() - after closing/opening, how long before signals are set to clear.