calcTouchSpellCone⚓︎
This event is raised just before a touch spell completes casting, to set up the hit detection cone for spell targets. See calcHitDetectionCone
for the melee equivalent.
--- @param e calcTouchSpellConeEventData
local function calcTouchSpellConeCallback(e)
end
event.register(tes3.event.calcTouchSpellCone, calcTouchSpellConeCallback)
Tip
This event can be filtered based on the attacker.baseObject
event data.
Tip
An event can be claimed by setting e.claim
to true
, or by returning false
from the callback. Claiming the event prevents any lower priority callbacks from being called.
Event Data⚓︎
angleXY
(number): The maximum allowable angle offset (in degrees) in the horizontal direction that will hit. This is related to game setting fCombatAngleXY but using different units. May be adjusted. The highest effective angle is 90 degrees, and larger angles will behave like 90 degrees.angleZ
(number): The maximum allowable angle offset (in degrees) in the vertical direction that will hit. This is related to game setting fCombatAngleZ but using different units. May be adjusted. The highest effective angle is 90 degrees, and larger angles will behave like 90 degrees.caster
(tes3reference): Read-only. The reference of the caster.casterMobile
(tes3mobileActor): Read-only. The mobile which is casting the magic.reach
(number): The touch spell search range in world units. Currently, changes to this value do not have an effect without further engine modifications.source
(tes3alchemy, tes3enchantment, tes3spell): Read-only. The magic source.sourceInstance
(tes3magicSourceInstance): Read-only. The unique instance of the magic source.