Difference between revisions of "OnHit - ObjectReference"
Jump to navigation
Jump to search
→Notes
imported>Chesko |
imported>Layam (→Notes) |
||
Line 39: | Line 39: | ||
**akProjectile can be None if hit by a melee attack. | **akProjectile can be None if hit by a melee attack. | ||
Also, if this reference is an [[Actor Script|Actor]] and the projectile was caused by a weapon enchant, the enchanted weapon will be in akSource. | Also, if this reference is an [[Actor Script|Actor]] and the projectile was caused by a weapon enchant, the enchanted weapon will be in akSource. | ||
*This event is called multiple when akSource has associated magic effects. If a sword has an enchantment with 2 effects, OnHit will be called 3 times - once for the physical damage of the sword and once for each magic effect. In all cases, akSource is the sword and not the enchantment. This also applies to spells (one hit for the spell projectile, and one for each associated magic effect). | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |