OnPedEnterVehicle: Difference between revisions

no edit summary
No edit summary
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = server
|name = onPedEnterVehicle
|side = shared
|type = event
|type = event
|name = onPedEnterVehicle
|games = iii vc sa
|usage = a ped starts moving to enter a vehicle
|desc = a ped enters a vehicle.<br>The event is invoked once per vehicle enter at the earliest stage of all stages involved for entering the vehicle. Stages may include: moving towards the vehicle, opening a vehicle door, the vehicle entering animation, alignment, etc.<br>If the vehicle enter occurrence is blocked, the event is still triggered. (For example, if the ped can't reach any doors of a car.)
|callbackParameters = Event event, Ped ped, Vehicle vehicle, int seat
|arg1 = Ped ped The ped that has started moving to enter a vehicle.
|cancellable = false
|arg2 = Vehicle vehicle The vehicle that the ped is moving to.
|parameter1 = Ped ped The ped that has started moving to enter a vehicle.
|arg3 = int seat The seat index that the ped is moving to.
|parameter2 = Vehicle vehicle The vehicle that the ped is moving to.
|cancel = false
|parameter3 = int seat The seat index that the ped is moving to.
}}
}}
6,833

edits