NPC:OnNPCEnterVehicle
Description:
Callback NPC:OnNPCEnterVehicle called when a NPC enters a vehicle.
Callback NPC:OnNPCEnterVehicle was added in 0.3a and will not work in earlier versions! |
Parameters:
(vehicleid, seatid)
int | vehicleid | The vehicleid from the Vehicle the NPC enters. |
int | seatid | The seatid the NPC uses. |
Return Values:
This function does not return any specific values.
Examples:
public OnNPCEnterVehicle(vehicleid, seatid) { printf("OnNPCEnterVehicle ID: %d Seat: %d", vehicleid, seatid); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- NPC:OnNPCExitVehicle: When a NPC leaves a Vehicle.