# Enable/Disable Tactical For Unit

Grammar — ForceTactical For Unit To Be Disabled (or ReEnabled) (unit, controlled)
FlagsNative | 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

Returns — void

native void AISetUnitTacticalDisabled(
	unit u,
	bool tacticalDisabled,
);

Category: AI Advanced / Tactical / Actions

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21947

        UISetCommandAllowed(lv_targetPlayerGroup, c_uiCommandAllowSmartClick, false);
        if ((libAIAI_gf_HeroAIIsAIEnabledForPlayer(lv_targetPlayer) == true)) {
            AISetUnitTacticalDisabled(lv_mindControlledUnit, true);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:21991

        UISetCommandAllowed(lv_targetPlayerGroup, c_uiCommandAllowSmartClick, true);
        if ((libAIAI_gf_HeroAIIsAIEnabledForPlayer(lv_targetPlayer) == true)) {
            AISetUnitTacticalDisabled(lv_mindControlledUnit, false);
        }