Difference between revisions of "OnHit - ObjectReference"
Jump to navigation
Jump to search
→Notes
imported>Layam m (→Notes) |
imported>Wbunkey2244 (→Notes) |
||
Line 29: | Line 29: | ||
</source> | </source> | ||
== Notes == | == ''Italic text''Notes == | ||
akSource and akProjectile can be None under various circumstances: | akSource and akProjectile can be None under various circumstances: | ||
*If specifying akSource, for example as a Weapon, akSource must be ''cast'' to the form that corresponds to the type. For instance, if(akSource ''as'' Weapon)...akSource = Weapon will yield a compiler error. | |||
*This reference is an [[Actor Script|Actor]]: | *This reference is an [[Actor Script|Actor]]: | ||
**akSource can be None if hit by a projectile attack where the projectile was not fired by a weapon or spell | **akSource can be None if hit by a projectile attack where the projectile was not fired by a weapon or spell |