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 TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1voidSet the AI functionality enabled

Examples

myself().getAiParams().allowLeaveVehicle(false) -- prevents AI from leaving a vehicle on it's own

Back to Scripting API