# Effect History Of Unit

Grammar — Effect History of Unit unit with maxCount entries.
FlagsNative | Function

Returns an Effect History object that can be used to inspect the history of effects for a unit. In order for a unit to register effects to its history, the unit must specify an Effect History Limit value, and any effects you want to track must specify a Caster History value. The Caster History value specifies the category under which you want to track the effect. You can use Effect History Entry Type to query the category for an Effect History entry. A max count of 0 (the default) will get all available entries.

# Arguments

  • unit — Unit
  • int — Max Count

Returns — effecthistory

native effecthistory UnitEffectHistory(
	unit inUnit,
	int inMaxCount,
);

Category: Effect History

# Examples

# mods/heroesdata.stormmod

GameLib.galaxy

// L1887
UnitEffectHistory(lp_playerHero, libGame_gv_deathRecap_MaxEffectsInHistory_C)

# mods/heroesdata.stormmod

UILib.galaxy

// L9346
UnitEffectHistory(lv_unit, 0)