AiParams.enableAiBehaviour 164
This function enables or disbales all AI functionalities toghether, including:
allowChangePose, allowCheckForEnemies, allowFindCoverWhenSuppressed, allowLeaveVehicle, allowMovements, allowOpenWindows, allowOrders and allowRadioOrders
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | bool | Set the AI functionality enabled |
Examples
Example 91
myself().getAiParams().enableAiBehaviour(false) -- disable multiple AI behaviours all toghether