# 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
- [F] —
void
— Remove Behaviors By Category — ( UnitBehaviorRemoveCategory ) - [F] —
void
— Remove Behavior (Player) — ( UnitBehaviorRemovePlayer ) - [F] —
void
— Remove Behavior — ( UnitBehaviorRemove ) - [F] —
void
— Add Behavior (Player) — ( UnitBehaviorAddPlayer ) - [F] —
void
— Add Behavior — ( UnitBehaviorAdd ) - [F] —
void
— Set Behavior Count — ( libNtve_gf_SetBehaviorCount ) - [F] —
int
— Number Of Behaviors On Unit — ( UnitBehaviorCountAll ) - [F] —
string
[ gamelink::Behavior ] — Unit Behavior — ( UnitBehaviorGet ) - [F] —
bool
— Unit Has Behavior — ( UnitHasBehavior2 ) - [F] —
bool
— Unit Has Behavior (Enabled) — ( UnitHasBehavior ) - [F] —
bool
— Unit Behavior Enabled — ( UnitBehaviorEnabled ) - [F] —
int
— Stack Count Of Behavior On Unit — ( UnitBehaviorCount ) - [F] —
bool
— Behavior Has Flag — ( UnitBehaviorHasFlag ) - [F] —
void
— Transfer Behavior — ( UnitBehaviorTransfer ) - [F] —
void
— Set Unit Behavior Duration — ( UnitBehaviorSetDuration ) - [F] —
void
— Set Unit Behavior Duration Remaining — ( UnitBehaviorSetDurationRemaining ) - [F] —
fixed
— Duration Remaining Of Behavior On Unit — ( UnitBehaviorDuration ) - [F] —
fixed
— Duration Of Behavior On Unit — ( UnitBehaviorDurationTotal ) - [F] —
void
— Set Unit Behavior Spawn Count — ( UnitBehaviorSpawn ) - [F] —
int
— Unit Behavior Effect Player — ( UnitBehaviorEffectPlayer ) - [F] —
unit
— Unit Behavior Effect Unit — ( UnitBehaviorEffectUnit ) - [F] —
void
— Set Unit Behavior User Data — ( UnitBehaviorEffectTreeSetUserData ) - [F] —
fixed
— User Data Of Behavior On Unit — ( UnitBehaviorEffectTreeUserData ) - [F] —
bool
— User Data Of Behavior On Unit Exists — ( UnitBehaviorEffectTreeUserDataExists ) - [F] —
void
— Unit Behavior Changes — ( TriggerAddEventUnitBehaviorChange ) - [F] —
void
— Unit Behavior Changes From Category — ( TriggerAddEventUnitBehaviorChangeFromCategory ) - [F] —
string
[ gamelink::Behavior ] — Triggering Behavior — ( EventUnitBehavior ) - [F] —
int
[ preset::BehaviorChange ] — Triggering Behavior Change — ( EventUnitBehaviorChange ) - [F] —
fixed
— Unit Behavior Damage Modify Remaining — ( UnitBehaviorDamageModifyRemaining ) - [F] —
fixed
— Unit Behavior Damage Modify Limit — ( UnitBehaviorDamageModifyLimit ) - [F] —
void
— For Each Behavior On Unit — ( )
# Examples
# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod
// L476
UnitBehaviorRemoveCategory(libGame_gv_teams[libAtDe_gv_attackDefend.lv_defendingTeam].lv_core, c_behaviorCategoryInvulnerable)
# mods/heroesdata.stormmod
// L1448
UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryReveal)
// L1449
UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategorySlow)
// L1450
UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryStun)
// L1451
UnitBehaviorRemoveCategory(lp_defender, c_behaviorCategoryDamageOverTime)
# mods/testmods/autopve.stormmod
// L232
UnitBehaviorRemoveCategory(lv_groupunit, c_behaviorCategoryTemporary)
// L297
UnitBehaviorRemoveCategory(lv_groupunit, c_behaviorCategoryTemporary)