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

Parameters

ParameterTypeDescription
1boolSet 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)

Back to Scripting API