Squirrel/Server/Events/Vehicle/onPlayerExitingVehicle

From Liberty Unleashed Wiki
Revision as of 10:12, 9 January 2010 by Sephiroth (Talk | contribs)

Jump to: navigation, search

This is called when a player exits a vehicle, for any reason

Syntax

  1. function onPlayerExitVehicle( player, vehicle, isPassenger )

Parameters

  • player - The player pointer
  • vehicle - The vehicle the player is exiting
  • isPassenger - A boolean which tells whether or not the player was a passenger in the vehicle

Example

This example will message the player when they exit a vehicle.

  1.  
  2. function onPlayerExitVehicle( player, vehicle, isPassenger )
  3. {
  4. MessagePlayer( "You have exited a " + vehicle + ".", player );
  5. }
  6.  

Notes

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

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox