Squirrel/Client/Events/Vehicle/onClientExitedTrain
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|onClientEnteredTrain}} {{Squirrel/LUOnly}} {{ScriptingChangesIn0.1.0.11}} This is called when the local player has successfully entered a train. == Syntax == <…') |
Latest revision as of 23:56, 12 September 2011
This is called when the local player has successfully entered a train.
[edit] Syntax
function onClientEnteredTrain( int train )
[edit] Arguments
- train - The ID of the train the player entered
[edit] Returns
This event does not handle return values.
[edit] Example
This example will message the player when they enter a train.
function onClientEnteredTrain( train ) { Message( "You entered a train." ); return 1; }
[edit] Notes
The function Message was used in this example. More info about it can be found in the corresponding page.