EVENT PREWEAPONSHOOT
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_PREWEAPONSHOOT | player that executed the input | player->i | 2 values |
EVENT_PREWEAPONSHOOT is a game event.
This event is called when the player fires a projectile, just before the projectile has been spawned.
See also EVENT_POSTWEAPONSHOOT.
Return Values
This event has two return values:
- userdef.return 0 (RETURN)
- Setting this to any non-zero value prevents spawning the projectile that is being fired.
- 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.