Squirrel/Server/Functions/Game/SetSSVBridgeLock

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "setssvlock" ) SetSSVBridgeLock( true );
 +
}
 +
 
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
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

LU This function works in Liberty Unleashed only.

This function locks or unlocks the lift bridge leading to Shoreside Vale.

Syntax

  1. bool SetSSVBridgeLock( bool bLocked )

Arguments

  • bLocked - A boolean representing whether the bridge should be locked or unlocked

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "setssvlock" ) SetSSVBridgeLock( true );
  5. }
  6.  
  7.  

Notes

This command is used to set the lock on the SSV bridge to locked/unlocked (true/false)

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox