Squirrel/Server/Functions/Game/GetSSVBridgeUpdateTime

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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:
__NOTOC__
+
{{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

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
LU This function works in Liberty Unleashed only.

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

  1. int GetSSVBridgeUpdateTime()

[edit] Arguments

  • none

[edit] Example

This command will tell players the time the SSV bridge stays open when they type '/bridgetime'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "bridgetime" )
  5. {
  6. MessagePlayer( "Shoreside Vale bridge will stay open for " + GetSSVBridgeUpdateTime() + " seconds.", plr );
  7. }
  8. }
  9.  

[edit] Notes

The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox