# Number Of Behaviors On Unit

Grammar — Number of behaviors on unit
FlagsNative | Function

Returns the number of behaviors on a unit.

# Arguments

  • unit — Unit

Returns — int

native int UnitBehaviorCountAll(unit inUnit);

Category: Behavior / Basic

# Examples

# mods/heroesdata.stormmod

GameLib.galaxy

// L11727
UnitBehaviorCountAll(lv_itHeroUnit)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2951
UnitBehaviorCountAll(lp_targetUnit)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L1708
UnitBehaviorCountAll(lv_itSelectedUnit)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L3535
UnitBehaviorCountAll(autoE98657EB_u)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L1664
UnitBehaviorCountAll(lp_killer)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L490
UnitBehaviorCountAll(lv_caster)
// L1349
UnitBehaviorCountAll(auto37CC6DB9_u)