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…') |
Revision as of 15:34, 4 November 2010
This event is called when the lift bridge leading to Shoreside Vale is either closing or opening.
Syntax
function onSSVBridgeUpdate( bool closing )
Arguments
- closing - Is the bridge closing (moving up) or opening
Returns
This event does not handle return values.
Example
This example will warn players when the bridge is closing.
function onSSVBridgeUpdate( closing ) { if ( closing ) Message( "Warning: SSV bridge is closing!" ); return 1; }
Notes
The function Message was used in in this example. More info about this in the corresponding page.
Related Events
- onSSVBridgeUpdate
- onTimeChange
- onWeatherChange