AiParams.enableAiBehaviour 3

This function enables or disbales all AI functionalities toghether, including:
allowChangePose, allowCheckForEnemies, allowFindCoverWhenSuppressed, allowLeaveVehicle, allowMovements, allowOpenWindows, allowOrders and allowRadioOrders


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolSet the AI functionality enabled

Examples

myself().getAiParams().enableAiBehaviour(false) -- disable multiple AI behaviours all toghether

Back to Scripting API