Squirrel/Server/Functions/Game/GetSSVBridgeUpdateTime
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ {{Squirrel/LUOnly}} This function returns the Shoreside Vale lift bridge update cycle in seconds. This cycle is the time interval starting from when the bridge opens to the momen...) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|GetSSVBridgeUpdateTime}} | |
{{Squirrel/LUOnly}} | {{Squirrel/LUOnly}} | ||
This function returns the Shoreside Vale lift bridge update cycle in seconds. This cycle is the time interval starting from when the bridge opens to the moment when it prepares to close again (when the bells start to ring). | This function returns the Shoreside Vale lift bridge update cycle in seconds. This cycle is the time interval starting from when the bridge opens to the moment when it prepares to close again (when the bells start to ring). |
Latest revision as of 11:02, 11 October 2010
This function returns the Shoreside Vale lift bridge update cycle in seconds. This cycle is the time interval starting from when the bridge opens to the moment when it prepares to close again (when the bells start to ring).
[edit] Syntax
int GetSSVBridgeUpdateTime()
[edit] Arguments
- none
[edit] Example
This command will tell players the time the SSV bridge stays open when they type '/bridgetime'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "bridgetime" ) { MessagePlayer( "Shoreside Vale bridge will stay open for " + GetSSVBridgeUpdateTime() + " seconds.", 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