Difference between revisions of "OnHit - ObjectReference"

177 bytes added ,  10:37, 17 February 2021
no edit summary
imported>OpusGlass
m
imported>Thingy Person
Line 92: Line 92:
**akSource can be None if hit by a bash attack from a carried light object (e.g., a torch)
**akSource can be None if hit by a bash attack from a carried light object (e.g., a torch)
**akProjectile can be None if hit by a melee attack.
**akProjectile can be None if hit by a melee attack.
***In fact, at least in SE, akProjectile appears to ''always'' be None if the reference is an Actor, although it does work as expected for some other types, such as Activators.
*This reference is ''not'' an [[Actor Script|Actor]]:
*This reference 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).
**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).