Htowner: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Categories
No edit summary
 
Line 1: Line 1:
If the actor/sprite is being hit by a weapon, htowner is the ID of the owner of the weapon.
If the actor/sprite is being hit by a projectile, htowner is the ID of the owner of the projectile.


For example:
For example:
Line 5: Line 5:
getactor[THISACTOR].htowner TEMP
getactor[THISACTOR].htowner TEMP


will set TEMP to the sprite ID of sprite who fired the weapon that is hitting [[THISACTOR]].
will set TEMP to the sprite ID of sprite who fired the projectile that is hitting [[THISACTOR]].


[[Category:Sprite structure members]]
[[Category:Sprite structure members]]

Latest revision as of 05:05, 22 February 2018

If the actor/sprite is being hit by a projectile, htowner is the ID of the owner of the projectile.

For example:

getactor[THISACTOR].htowner TEMP

will set TEMP to the sprite ID of sprite who fired the projectile that is hitting THISACTOR.