onPlayerExitedVehicle

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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

Syntax

  1. function onPlayerExitedVehicle( Player player, Vehicle vehicle )

Arguments

  • player - The player who exited a vehicle
  • vehicle - The vehicle player exited

Returns

This event does not handle return values.

Example

This example will message player the name of the vehicle they just exited.

  1.  
  2. function onPlayerExitedVehicle( player, vehicle )
  3. {
  4. MessagePlayer( "You exited a " + vehicle.tostring(), 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