Squirrel/Client/Events/Vehicle/onClientExitedTrain

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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

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

This is called when the local player has successfully entered a train.

[edit] Syntax

  1. 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.

  1.  
  2. function onClientEnteredTrain( train )
  3. {
  4. Message( "You entered a train." );
  5. return 1;
  6. }
  7.  

[edit] Notes

The function Message was used in this example. More info about it can be found in the corresponding page.

[edit] Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox