AiParams.allowGiveOrders 64
When enabled, AI will automatically give orders to the squad if squad leader. If you want to give orders to a squad with your custom scripts, for example by using Squad.moveTo function, most likely you want this to be disabled
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 95
-- prevents AI from giving orders. useful if you want to give orders to a squad by using Squad.moveTo or Squad.followLeader without AI squad leader overriding your orders
myself().getAiParams().allowGiveOrders (false)