This is called when the local player has successfully entered a train.
- function onClientEnteredTrain( int train )
- train - The ID of the train the player entered
This event does not handle return values.
This example will message the player when they enter a train.
- function onClientEnteredTrain( train )
- Message( "You entered a train." );
- return 1;
The function Message was used in this example. More info about it can be found in the corresponding page.