Squirrel/Server/Functions/Game/IsSSVBridgeUp

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|IsSSVBridgeUp}}
 
{{Squirrel/LUOnly}}
 
{{Squirrel/LUOnly}}
 
This function returns whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down).
 
This function returns whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down).

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 whether the lift bridge leading to Shoreside Vale is up (going up) or down (going down).

[edit] Syntax

  1. bool IsSSVBridgeUp()

[edit] Arguments

  • none

[edit] Example

This command will tell the player the status of the SSV bridge when they type '/bridge'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "bridge" )
  5. {
  6. if ( IsSSVBridgeUp() ) MessagePlayer( "Shoreside Vale bridge is currently up.", plr );
  7. else MessagePlayer( "Shoreside Vale bridge is currently open.", plr );
  8. }
  9. }
  10.  

[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