|player that executed the input
EVENT_PREWEAPONSHOOT is a game event.
This event is called when the player fires a projectile in the defined weapon sequence (P_FireWeapon), just before the projectile is spawned.
Note that it does not trigger if shoot is run manually from the player actor.
See also EVENT_POSTWEAPONSHOOT.
This event has two return values:
- 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.