Squirrel/Server/Functions/Game/SetSSVBridgeLock
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ {{Squirrel/LUOnly}} This function locks or unlocks the lift bridge leading to Shoreside Vale. == Syntax == <code>bool SetSSVBridgeLock( bool bLocked )</code> == Arguments == ...) |
(→Example) |
||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "setssvlock" ) SetSSVBridgeLock( true ); | ||
+ | } | ||
+ | |||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This command is used to set the lock on the SSV bridge to locked/unlocked (true/false) | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Revision as of 01:53, 7 January 2010
This function locks or unlocks the lift bridge leading to Shoreside Vale.
Syntax
bool SetSSVBridgeLock( bool bLocked )
Arguments
- bLocked - A boolean representing whether the bridge should be locked or unlocked
Example
function onPlayerCommand( player, command, text ) { if ( command == "setssvlock" ) SetSSVBridgeLock( true ); }
Notes
This command is used to set the lock on the SSV bridge to locked/unlocked (true/false)
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