# Effect History Entry Unit

Grammarunit unit for effect history history entry index.
FlagsNative | Function

# Arguments

  • effecthistory — History
  • int — Index
  • int<preset::EffectUnit> — Unit

Returns — unit

native unit EffectHistoryGetUnitByLocation(
	effecthistory inHistory,
	int inIndex,
	int inLocation,
);

Category: Effect History / Entries

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1951

        }

        lv_effectingUnit = EffectHistoryGetUnitByLocation(lv_effectHistory, lv_itEffectHistoryEntry, c_effectUnitCaster);
        lv_effectingUnitType = EffectHistoryGetOriginUnitType(lv_effectHistory, lv_itEffectHistoryEntry);
        if (((lv_foundSpecialDamageEffect == true) || (CatalogFieldValueGet(c_gameCatalogEffect, EffectHistoryGetEffect(lv_effectHistory, lv_itEffectHistoryEntry, c_effectHistoryEffectCurrent), "SourceButtonFace", c_playerAny) == ""))) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:9363

        lv_dataTime = EffectHistoryGetTime(lv_history, lv_itEntry);
        lv_dataType = EffectHistoryGetType(lv_history, lv_itEntry);
        lv_dataUnit = EffectHistoryGetUnitByLocation(lv_history, lv_itEntry, c_effectUnitCaster);
        lv_dataWeapon = EffectHistoryGetWeapon(lv_history, lv_itEntry);
        TextExpressionSetToken("Param/Expression/lib_UIUI_199067E4", "A", IntToText(lv_itEntry));