# Effect History Entry Time

Grammar — Time of effect history history entry index
FlagsNative | Function

Returns the game time (in seconds) when the effect that was logged in the Effect History at the specified Index occurred.

# Arguments

  • effecthistory — History
  • int — Index

Returns — fixed

native fixed EffectHistoryGetTime(
	effecthistory inHistory,
	int inIndex,
);

Category: Effect History / Entries

# Examples

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

    for ( ; ( (auto9091C3BB_ai >= 0 && lv_itEffectHistoryEntry <= auto9091C3BB_ae) || (auto9091C3BB_ai < 0 && lv_itEffectHistoryEntry >= auto9091C3BB_ae) ) ; lv_itEffectHistoryEntry += auto9091C3BB_ai ) {
        lv_debugString = "";
        lv_effectHistoryEntryTime = EffectHistoryGetTime(lv_effectHistory, lv_itEffectHistoryEntry);
        if (((lv_currentTime - lv_effectHistoryEntryTime) > libGame_gv_deathRecap_MaxTimeElapsed_C)) {
            break;

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

        lv_dataEffectRoot = EffectHistoryGetEffect(lv_history, lv_itEntry, c_effectHistoryEffectRoot);
        lv_dataEffectCurrent = EffectHistoryGetEffect(lv_history, lv_itEntry, c_effectHistoryEffectCurrent);
        lv_dataTime = EffectHistoryGetTime(lv_history, lv_itEntry);
        lv_dataType = EffectHistoryGetType(lv_history, lv_itEntry);
        lv_dataUnit = EffectHistoryGetUnitByLocation(lv_history, lv_itEntry, c_effectUnitCaster);