Skip to content

spellProjectileHitObject⚓︎

The spellProjectileHitObject event fires when a spell projectile collides with a static object.

--- @param e spellProjectileHitObjectEventData
local function spellProjectileHitObjectCallback(e)
end
event.register(tes3.event.spellProjectileHitObject, spellProjectileHitObjectCallback)

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⚓︎

  • collisionPoint (tes3vector3): Read-only. The collision point of the spell projectile.
  • firingReference (tes3reference): Read-only. Reference to the actor that fired the projectile.
  • mobile (tes3mobileSpellProjectile): Read-only. The spell projectile that is expiring.
  • position (tes3vector3): Read-only. The position of the spell projectile at collision.
  • target (tes3reference): Read-only. Reference to the object that was hit.
  • velocity (tes3vector3): Read-only. The velocity of the spell projectile at collision.

spellProjectileHitActorspellProjectileHitObjectspellProjectileHitTerrainspellProjectileHitWater