EVENT DAMAGESPRITE

From EDukeWiki
Revision as of 05:51, 20 February 2020 by Fox (talk | contribs) (Created page with "'''EVENT_DAMAGESPRITE''' is a Game Event. This event is triggered whenever a sprite is hit by a weapon, however it is executed before the damage. This...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

EVENT_DAMAGESPRITE is a Game Event.

This event is triggered whenever a sprite is hit by a weapon, however it is executed before the damage.

This event is only executed if the tilenum was set with damageeventtile and damageeventtilerange.

THISACTOR equals the ID of the projectile or source of damage.

RETURN or the userdef return 0 equals the ID of what is being damaged.

The userdef return 1 through 5 equals the hitradius parameters. If there's no radius damage, return 1 equals -1.

See also EVENT_DAMAGEFLOOR, EVENT_DAMAGECEILING, EVENT_DAMAGEWALL and EVENT_POSTDAMAGESPRITE.