AiParams.allowCheckForEnemies 2

When enabled, AI will check for enemies around and target them. When this function is disabled AI will not search and target enemies. Useful for custom AI implementations


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolSet the AI functionality enabled

Examples

myself().getAiParams().allowCheckForEnemies(false) -- prevents AI to automatically target enemies

Back to Scripting API