Squirrel/Server/Functions/Game/SetSSVBridgeUpdateTime
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ {{Squirrel/LUOnly}} This function sets the automatic update time for the lift bridge leading to Shoreside Vale. == Syntax == <code>bool SetSSVBridgeUpdateTime( int iTime )</cod...) |
(→Example) |
||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "setssvupdate" ) SetSSVBridgeUpdateTime( text.tointeger() ); | ||
+ | } | ||
+ | |||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This command is used to set the update time on the SSV bridge to the amount specified in the text parameter. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Revision as of 02:54, 7 January 2010
This function sets the automatic update time for the lift bridge leading to Shoreside Vale.
Syntax
bool SetSSVBridgeUpdateTime( int iTime )
Arguments
- iTime - Bridge update time in seconds. This time is the interval starting from when the bridge opens to the moment when it prepares to close again (when the bells start to ring)
Example
function onPlayerCommand( player, command, text ) { if ( command == "setssvupdate" ) SetSSVBridgeUpdateTime( text.tointeger() ); }
Notes
This command is used to set the update time on the SSV bridge to the amount specified in the text parameter.
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