Squirrel/Server/Events/Vehicle/onPlayerExitingVehicle

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This is called when a player exits a vehicle, for any reason == Syntax == <code>function onPlayerExitVehicle( player, vehicle, isPassenger )</code> == Parameters == * '''play...)

Revision as of 10:09, 9 January 2010

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 in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox