Difference between revisions of "OnHit - ObjectReference"

88 bytes removed ,  00:23, 30 August 2012
m
"akWeapon" is how "akSource" is most commonly referred in the vanilla scripts.
imported>Sagitarius22
imported>Jonwd7
m ("akWeapon" is how "akSource" is most commonly referred in the vanilla scripts.)
Line 35: Line 35:
**akProjectile can be None if hit by a melee attack.
**akProjectile can be None if hit by a melee attack.
*This reference is ''not'' an [[Actor Script|Actor]]:
*This reference 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 this reference is an [[Actor Script|Actor]] and the projectile was caused by a weapon enchant, the enchanted weapon will be in akWeapon.
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 needs to be verified. What's akWeapon? This is not a part of the parameters.'''


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
Anonymous user