Player.SetVehicleEnterDoor

From Liberty Unleashed Wiki
Revision as of 23:30, 28 May 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


This function overrides the players target door when they start entering a vehicle.

Syntax

  1. bool Player.SetVehicleEnterDoor( int door )

Arguments

  • door - This is the ID of the door to use to override. For a list of doors, check here

Example

This example will force the player enter a vehicle as a driver.

  1.  
  2. function onPlayerEnteringVehicle( player, vehicle, door )
  3. {
  4. player.SetVehicleEnterDoor( DOOR_DRIVER );
  5. return 1;
  6. }
  7.  
  8.  

Notes

The call onPlayerEnteringVehicle was used in in this example. More info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox