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 Type | Description |
---|---|
void | This function doesn't return anything |
Parameters
Parameter | Type | Description |
---|---|---|
1 | bool | Set the AI functionality enabled |
Examples
myself().getAiParams().allowCheckForEnemies(false) -- prevents AI to automatically target enemies