# Remove Behaviors By Category

Grammar — Remove category behaviors from inUnit
FlagsNative | Action

Removes all behaviors that belong to the specified category from the specified unit.

# Arguments

Returns — void

native void UnitBehaviorRemoveCategory(
	unit inUnit,
	int inCategory,
);

Category: Behavior / Basic

# Examples

mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmodbase.stormdata/LibMDoE.galaxy:476

    libMDoE_gf_MDoETransmissionBoatProgress100();
    libMDoE_gf_MDoEUIShowHideCannonBarrageUI(true);
    UnitBehaviorRemoveCategory(libGame_gv_teams[libAtDe_gv_attackDefend.lv_defendingTeam].lv_core, c_behaviorCategoryInvulnerable);
    libNtve_gf_SendActorMessageToUnit(libGame_gv_teams[libAtDe_gv_attackDefend.lv_defendingTeam].lv_core, "Signal ClearShield");
    return true;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1448

    UnitSetState(lp_defender, c_unitStateStatusBar, false);
    UnitSetState(lp_defender, c_unitStateFidget, false);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryReveal);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategorySlow);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryStun);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1449

    UnitSetState(lp_defender, c_unitStateFidget, false);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryReveal);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategorySlow);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryStun);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryDamageOverTime);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1450

    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryReveal);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategorySlow);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryStun);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryDamageOverTime);
    UnitBehaviorAddPlayer(lp_defender, "GardensMercCampPreHibernator", UnitGetOwner(lp_defender), 1);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1451

    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategorySlow);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryStun);
    UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryDamageOverTime);
    UnitBehaviorAddPlayer(lp_defender, "GardensMercCampPreHibernator", UnitGetOwner(lp_defender), 1);
    libNtve_gf_SendActorMessageToUnit(lp_defender, "SetOpacity 0.000000 2.500000");

mods/testmods/autopve.stormmodbase.stormdata/Lib1035AFB3.galaxy:232

        lv_groupunit = UnitGroupUnitFromEnd(auto5BDC4D8C_g, auto5BDC4D8C_u);
        if (lv_groupunit == null) { break; }
        UnitBehaviorRemoveCategory(lv_groupunit, c_behaviorCategoryTemporary);
        UnitSetPosition(lv_groupunit, Point(25.0, (126 - lv_positionint)), false);
        UnitIssueOrder(lv_groupunit, Order(AbilityCommand("HoldFire", 1)), c_orderQueueReplace);

mods/testmods/autopve.stormmodbase.stormdata/Lib1035AFB3.galaxy:297

        lv_groupunit = UnitGroupUnitFromEnd(auto3D0B7601_g, auto3D0B7601_u);
        if (lv_groupunit == null) { break; }
        UnitBehaviorRemoveCategory(lv_groupunit, c_behaviorCategoryTemporary);
        UnitIssueOrder(lv_groupunit, Order(AbilityCommand("HoldFire", 1)), c_orderQueueReplace);
    }