# Enable/Disable Tactical For Unit
Grammar — ForceTactical For Unit To Be Disabled (or ReEnabled) (unit, controlled)
Flags —Native
|Action
Forces tactical to be disabled for the unit (regardless of other unit properties such as ForceTactical / Computer Controlled). Or re-enables tactical that was previous disabled by this function.
# Arguments
unit
— Unitbool
[ preset::AIDisableTactical ] — Enable/Disable
Returns — void
native void AISetUnitTacticalDisabled(
unit u,
bool tacticalDisabled,
);
# Related
Category: AI Advanced / Tactical / Actions
- [F] —
void
— Set Ignored By Wave — ( AISetIgnoredByWave ) - [F] —
void
— Clear Cloaked Attacker — ( AIClearCloakedAttacker ) - [F] —
int
— Tactical AI - Cast — ( AICast ) - [F] —
int
— Tactical AI - Flee — ( AICastFlee ) - [F] —
void
— Call Original Tactical AI Think — ( AIBaseThink ) - [F] —
void
— Call Unit Ability Tactical Script — ( AIExecuteAbilTactical ) - [F] —
void
— Set Tactical AI Range — ( libNtve_gf_SetTacticalAIRange ) - [F] —
void
— Set Tactical AI Think — ( libNtve_gf_SetTacticalAIThink ) - [F] —
void
— Enable/Disable Tactical For Unit — ( AISetUnitTacticalDisabled ) - [F] —
void
— Enable/Disable Tactical For Unit Group — ( AISetGroupTacticalDisabled )
# Examples
# mods/heroesdata.stormmod
// L21947
AISetUnitTacticalDisabled(lv_mindControlledUnit, true)
// L21991
AISetUnitTacticalDisabled(lv_mindControlledUnit, false)