Player::taskLeaveVehicle

From RAGE Multiplayer Wiki
Revision as of 23:40, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Flags from decompiled scripts:
0 = normal exit and closes door.
1 = normal exit and closes door.
16 = teleports outside, door kept closed.
64 = normal exit and closes door, maybe a bit slower animation than 0.
256 = normal exit but does not close the door.
4160 = ped is throwing himself out, even when the vehicle is still.
262144 = ped moves to passenger seat first, then exits normally

Others to be tried out: 320, 512, 131072.

Syntax

player.taskLeaveVehicle(vehicle, flags);

Required Arguments

  • vehicle: Vehicle handle or object
  • flags: int

Return value

  • Undefined

Example

// todo

See also