Squirrel/Server/Functions/Game/IsSSVBridgeUp
From Liberty Unleashed Wiki
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|IsSSVBridgeUp}} | |
{{Squirrel/LUOnly}} | {{Squirrel/LUOnly}} | ||
This function returns whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down). | This function returns whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down). |
Latest revision as of 11:02, 11 October 2010
This function returns whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down).
[edit] Syntax
bool IsSSVBridgeUp()
[edit] Arguments
- none
[edit] Example
This command will tell the player the status of the SSV bridge when they type '/bridge'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "bridge" ) { if ( IsSSVBridgeUp() ) MessagePlayer( "Shoreside Vale bridge is currently up.", plr ); else MessagePlayer( "Shoreside Vale bridge is currently open.", plr ); } }
[edit] Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.
[edit] 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