The spellTick event happens every frame that an effect is active on a target. This can be used to aid in scripted spells, cancel active spells, or otherwise monitor spell activity on actors.
--- @param e spellTickEventData local function spellTickCallback(e) end event.register(tes3.event.spellTick, spellTickCallback)
This event can be filtered based on the
source event data.
This event supports blocking by setting
true or returning
false. Blocking the event prevents vanilla behavior from happening. For example, blocking an
equip event prevents the item from being equipped.
An event can be claimed by setting
true, or by returning
false from the callback. Claiming the event prevents any lower priority callbacks from being called.
caster(tes3reference): Read-only. The caster of the spell.
deltaTime(number): Read-only. The number of seconds since the last spell tick.
effect(tes3magicEffect): Read-only. The individual effect structure on source.
effectId(tes3.effect, integer): Read-only. The magic effect ID that is being ticked. Maps to values in
effectIndex(number): Read-only. The index of the effect in source’s effects list.
effectInstance(tes3magicEffectInstance): Read-only. The unique instance of the magic effect.
source(tes3alchemy, tes3enchantment, tes3spell): Read-only. The magic source.
sourceInstance(tes3magicSourceInstance): Read-only. The unique instance of the magic source.
target(tes3reference): Read-only. The target of the spell. For self-targeted spells, this matches caster.