Difference between revisions of "OnHit - ScriptObject"
m
akWeapon isn't referenced in the in game OnHit event. Most likely a typo for akSource.
imported>RobinHood70 |
imported>Dog m (akWeapon isn't referenced in the in game OnHit event. Most likely a typo for akSource.) |
||
Line 39: | Line 39: | ||
***akProjectile can be None if hit by a melee attack. | ***akProjectile can be None if hit by a melee attack. | ||
**The target is ''not'' an [[Actor Script|Actor]]: | **The target is ''not'' an [[Actor Script|Actor]]: | ||
*** | ***akSource can be None if hit by a projectile attack where the projectile was not fired by a weapon (for example, a magic spell with a projectile component). | ||
***akProjectile can be None if hit by a melee attack. | ***akProjectile can be None if hit by a melee attack. | ||
*Also, if the target is an [[Actor Script|Actor]] and the projectile was caused by a weapon enchant, the enchanted weapon will be in | *Also, if the target is an [[Actor Script|Actor]] and the projectile was caused by a weapon enchant, the enchanted weapon will be in akSource. | ||
*Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | *Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | ||
*This event only fires once, in order to have it fire again, you must re-register. | *This event only fires once, in order to have it fire again, you must re-register. |