onPlayerExitedTrain

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
LU This function works in Liberty Unleashed only.

This is called when a player has successfully exited a train.

Syntax

  1. function onPlayerExitedTrain( Player player, int train )

Arguments

  • player - The player who exited a train
  • train - The ID of the train the player exited. NOTE: This argument was added in update 0.1.0.11, so it is not present in previous versions

Returns

This event does not handle return values.

Example

This example will message a player when they exit a train.

  1.  
  2. function onPlayerExitedTrain( player, train )
  3. {
  4. MessagePlayer( "You exited a train.", player );
  5. return 1;
  6. }
  7.  

Notes

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox