Difference between revisions of "OnHit - ScriptObject"

No change in size ,  16:01, 6 June 2016
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]]:
***akWeapon 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).
***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 akWeapon.
*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.
Anonymous user