# Remove Behaviors By Category
Grammar — Remove category behaviors from inUnit
Flags —Native|Action
Removes all behaviors that belong to the specified category from the specified unit.
# Arguments
unit— Unitint<preset::BehaviorFlag> — Category
Returns — void
native void UnitBehaviorRemoveCategory(
unit inUnit,
int inCategory,
);
# Related
Category: Behavior / Basic
- Remove Behaviors By Category —
void— UnitBehaviorRemoveCategory - Remove Behavior (Player) —
void— UnitBehaviorRemovePlayer - Remove Behavior —
void— UnitBehaviorRemove - Add Behavior (Player) —
void— UnitBehaviorAddPlayer - Add Behavior —
void— UnitBehaviorAdd - Set Behavior Count —
void— libNtve_gf_SetBehaviorCount - Number Of Behaviors On Unit —
int— UnitBehaviorCountAll - Unit Behavior —
string<gamelink::Behavior> — UnitBehaviorGet - Unit Has Behavior —
bool— UnitHasBehavior2 - Unit Has Behavior (Enabled) —
bool— UnitHasBehavior - Unit Behavior Enabled —
bool— UnitBehaviorEnabled - Stack Count Of Behavior On Unit —
int— UnitBehaviorCount - Behavior Has Flag —
bool— UnitBehaviorHasFlag - Transfer Behavior —
void— UnitBehaviorTransfer - Set Unit Behavior Duration —
void— UnitBehaviorSetDuration - Set Unit Behavior Duration Remaining —
void— UnitBehaviorSetDurationRemaining - Duration Remaining Of Behavior On Unit —
fixed— UnitBehaviorDuration - Duration Of Behavior On Unit —
fixed— UnitBehaviorDurationTotal - Set Unit Behavior Spawn Count —
void— UnitBehaviorSpawn - Unit Behavior Effect Player —
int— UnitBehaviorEffectPlayer - Unit Behavior Effect Unit —
unit— UnitBehaviorEffectUnit - Set Unit Behavior User Data —
void— UnitBehaviorEffectTreeSetUserData - User Data Of Behavior On Unit —
fixed— UnitBehaviorEffectTreeUserData - User Data Of Behavior On Unit Exists —
bool— UnitBehaviorEffectTreeUserDataExists - Unit Behavior Changes —
void— TriggerAddEventUnitBehaviorChange - Unit Behavior Changes From Category —
void— TriggerAddEventUnitBehaviorChangeFromCategory - Triggering Behavior —
string<gamelink::Behavior> — EventUnitBehavior - Triggering Behavior Change —
int<preset::BehaviorChange> — EventUnitBehaviorChange - Unit Behavior Damage Modify Remaining —
fixed— UnitBehaviorDamageModifyRemaining - Unit Behavior Damage Modify Limit —
fixed— UnitBehaviorDamageModifyLimit - For Each Behavior On Unit — macro
# Examples
mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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);
}