Squirrel/Server/Functions/Game/SetSSVBridgeUpdateTime

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

LU This function works in Liberty Unleashed only.

This function sets the automatic update time for the lift bridge leading to Shoreside Vale.

Syntax

  1. 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

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "setssvupdate" ) SetSSVBridgeUpdateTime( text.tointeger() );
  5. }
  6.  
  7.  

Notes

This command is used to set the update time on the SSV bridge to the amount specified in the text parameter.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox