AiParams.setTargetPlanesOften 2

Enable this feature to force the AI to target planes, if closer than any other spotted enemy


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolSet the AI functionality enabled

Examples

myself().getAiParams().setTargetPlanesOften(true) -- start targeting planes with small arms way more often

Back to Scripting API