Squirrel/Server/Functions/Game/IsSSVBridgeUp
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ {{Squirrel/LUOnly}} This function returns whether the lift bridge leading to Shoreside Vale is up or down. == Syntax == <code>bool IsSSVBridgeUp()</code> == Arguments == * ''...) |
Revision as of 00:07, 27 November 2009
This function returns whether the lift bridge leading to Shoreside Vale is up or down.
Syntax
bool IsSSVBridgeUp()
Arguments
- none
Example
This command will tell the player whether the SSV bridge has been locked when they type '/bridgelock'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "bridgelock" ) { if ( IsSSVBridgeUp() ) MessagePlayer( "Shoreside Vale bridge is currently up.", plr ); else MessagePlayer( "Shoreside Vale bridge is currently open.", plr ); } }
Notes
The function MessagePlayer and call onPlayerCommand were used in 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