CloseSSVBridge
From Liberty Unleashed Wiki
This function closes the bridge leading to Shoreside Vale so that players can't drive across it. If the bridge is already moving or up nothing will happen.
Syntax
bool CloseSSVBridge( [ bool delayed ] )
Arguments
- delayed If this optional argument is true, ring bridge bells for 10 seconds before lifting the bridge up. Otherwise lift the bridge immediately. By defaut the bridge will be lifted immediately
Example
This command will close the Shoreside Vale bridge when someone types '/closessv'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "closessv" ) { MessagePlayer( "Closing Shoreside Vale Bridge", plr ); CloseSSVBridge( true ); } return 1; }
Notes
The function MessagePlayer and call onPlayerCommand were used in this example. More info about them in corresponding pages.
Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock