EVENT POSTWEAPONSHOOT

From EDukeWiki
Revision as of 10:40, 7 January 2024 by Doom64hunter (talk | contribs) (Created page with "{{EventTable|1=EVENT_POSTWEAPONSHOOT|2=player that executed the input|3=player->i|4=2 values}} EVENT_POSTWEAPONSHOOT is a game event. This event is called when the player fires a projectile, directly after the projectile has been spawned. See also EVENT_PREWEAPONSHOOT. == Return Values == This event has two return values: :; userdef.return 0 (RETURN) :: This value contains the spritenum of the projectile if spawning was succe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_POSTWEAPONSHOOT player that executed the input player->i 2 values

EVENT_POSTWEAPONSHOOT is a game event.

This event is called when the player fires a projectile, directly after the projectile has been spawned.

See also EVENT_PREWEAPONSHOOT.

Return Values

This event has two return values:

userdef.return 0 (RETURN)
This value contains the spritenum of the projectile if spawning was successful, or -1 otherwise. Changing this value does nothing.
userdef.return 1
Contains the index of the projectile if they are being fired in a burst, starting from 0. For single shots, this is always 0.