CloseSSVBridge

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 closes the bridge leading to Shoreside Vale so that players can't drive across it. If the bridge is already moving or up nothing will happen.

Syntax

  1. bool CloseSSVBridge( [ bool delayed ] )

Arguments

  • delayed If this optional argument is true, ring bridge bells for 10 seconds before lifting the bridge up. Otherwise lift the bridge immediately. By defaut the bridge will be lifted immediately

Example

This command will close the Shoreside Vale bridge when someone types '/closessv'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "closessv" )
  5. {
  6. MessagePlayer( "Closing Shoreside Vale Bridge", plr );
  7. CloseSSVBridge( true );
  8. }
  9. return 1;
  10. }
  11.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox