Last updated
Last updated
There are 3 client events intended to be used by external scripts, these are stungrenade:flashed
, stungrenade:flashFading
and stungrenade:fadedOut
.
stungrenade:flashed
is triggered when a stungrenade flashes the player, it has 4 parameters, strength
(0.0-1.0), duration
(ms), position
(vector3) and distance
(meters). A few things to notice are that the strength is the strength added by this flash, not the total and that the duration is the time this flash will last (any new or older flashes might make it longer).
stungrenade:flashFading
is triggered when the flash starts to fade out, this is when the weapon wheel is accessible again and when the minimap appears (if those configs are enabled). It has 2 parameters, strength
(0.0-1.0) and duration
(ms), these are the same as the parameters for stungrenade:flashed
.
stungrenade:fadedOut
is triggered when the flash has completely faded out, it has no parameters.
There is also 1 internal server event named stungrenade:explosion
, it has one parameter coords
, it is triggered by the client. For more information on its usage see .