Sets the "cursor" position used by other CombatLog functions. Information about the entry at the "cursor" position can be retrieved with CombatLogGetCurrentEntry()
. That function then advances the cursor to the next entry, so calling it repeatedly returns all information in the combat log -- this function can be used to "rewind" the combat log to retrieve information about earlier events.
The argument index
can be positive or negative: positive indices start at the beginning of the combat log (oldest events) and count up to the end (newest events); negative indices start at -1
for the newest event and count backwards to to -
CombatLogGetNumEntries(ignoreFilter)
for the oldest.
See also CombatLog functions.
Signature:
CombatLogSetCurrentEntry(index
[,
ignoreFilter])
Arguments:
index
- Index of a combat log event (between1
andCombatLogGetNumEntries(ignoreFilter)
, or between-1
and-
CombatLogGetNumEntries(ignoreFilter)
) (number
)ignoreFilter
- True to use the entire saved combat log history; false or omitted to use only events matching the current filter (boolean
)