AiParams.allowLeaveVehicle 3
When enabled, AI will leave vehicle when necessary. If you want to control which vehicle the AI should use or force an AI never to leave a vehicle, you might want to disable this feature
Return value
Return Type | Description |
---|---|
void | This function doesn't return anything |
Parameters
Parameter | Type | Description |
---|---|---|
1 | void | Set the AI functionality enabled |
Examples
myself().getAiParams().allowLeaveVehicle(false) -- prevents AI from leaving a vehicle on it's own