Squirrel/Server/Events/Game/onSSVBridgeUpdate

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|onSSVBridgeUpdate}} {{Squirrel/LUOnly}} This event is called when the lift bridge leading to Shoreside Vale is either closing or opening. == Syntax == <code>fu…')
 
m
 
Line 30: Line 30:
 
=== Notes ===
 
=== Notes ===
  
The function [[Squirrel/Server/Functions/Messages/Message|Message]] was used in in this example. More info about this in the corresponding page.
+
The function [[Squirrel/Server/Functions/Messages/Message|Message]] was used in this example. More info about this in the corresponding page.
  
 
== Related Events ==
 
== Related Events ==
  
 
{{Squirrel/Server/Events/Game}}
 
{{Squirrel/Server/Events/Game}}

Latest revision as of 16:48, 8 November 2010

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

This event is called when the lift bridge leading to Shoreside Vale is either closing or opening.

[edit] Syntax

  1. function onSSVBridgeUpdate( bool closing )

[edit] Arguments

  • closing - Is the bridge closing (moving up) or opening

[edit] Returns

This event does not handle return values.

[edit] Example

This example will warn players when the bridge is closing.

  1.  
  2. function onSSVBridgeUpdate( closing )
  3. {
  4. if ( closing ) Message( "Warning: SSV bridge is closing!" );
  5. return 1;
  6. }
  7.  

[edit] Notes

The function Message was used in this example. More info about this in the corresponding page.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox