GetSSVBridgeLock

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
LU This function works in Liberty Unleashed only.

This function returns whether the automatic bridge controller has been locked. If it's locked the bridge will whether stay up or down depending on when the lock was enabled.

Syntax

  1. bool GetSSVBridgeLock()

Arguments

  • none

Example

This command will tell the player whether the SSV bridge has been locked when they type '/bridgelock'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "bridgelock" )
  5. {
  6. if ( GetSSVBridgeLock() ) MessagePlayer( "Shoreside Vale bridge is currently locked.", plr );
  7. else MessagePlayer( "Shoreside Vale bridge is working within normal parameters.", plr );
  8. }
  9. }
  10.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox