TaskInvokerEnterVehicle Method (Vehicle, Int32, Int32)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Makes the Ped enter the specified Vehicle.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: (0.56.1131.11510)

public Task EnterVehicle(
	Vehicle vehicle,
	int timeOut,
	int seatIndex


Type: RageVehicle
The Vehicle to enter.
Type: SystemInt32
The time out in milliseconds, to allow the task to complete. If the task times out, the Ped will be warped into the specified Vehicle.
Type: SystemInt32

The index of the seat the Ped should get onto.

If the specified index is -1, the Ped will get into the driver's seat.

If the specified index is -2, the Ped will get into any free seat (TODO: VERIFY!).

For regular cars, usually the seats are indexed as follows:

0Passenger seat
1Left rear
2Right rear

Return Value

Type: Task
An instance of Task that can be used to retrieve information about the task.
See Also