TaskInvokerEnterVehicle Method (Vehicle, 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.0.0.0 (0.56.1131.11510)
Syntax

public Task EnterVehicle(
	Vehicle vehicle,
	int seatIndex
)

Parameters

vehicle
Type: RageVehicle
The Vehicle to enter.
seatIndex
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:

IndexSeat
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

Reference