Squirrel/Server/Events/Game/onSSVBridgeUpdate
From Liberty Unleashed Wiki
(Difference between revisions)
(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 | + | 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 15:48, 8 November 2010
This event is called when the lift bridge leading to Shoreside Vale is either closing or opening.
[edit] Syntax
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.
function onSSVBridgeUpdate( closing ) { if ( closing ) Message( "Warning: SSV bridge is closing!" ); return 1; }
[edit] Notes
The function Message was used in this example. More info about this in the corresponding page.
[edit] Related Events
- onSSVBridgeUpdate
- onTimeChange
- onWeatherChange