Player onthrowgren2
From Fortress Forever Wiki
Revision as of 01:38, 4 July 2017 by R00Kie (talk | contribs) (R00Kie moved page Player throwgren2 to Player onthrowgren2)
player_onthrowgren2( player, time )This function is called whenever a player throws a secondary grenade. Return true or false to allow/disallow the throw. Inputsplayer(CFFPlayer) The player trying to throw the grenade time(float) The time, in seconds, since the grenade was primed. Examplesfunction player_onthrowgren2( player, time ) if time < .5 then ApplyToPlayer( player, {AT.kStopPrimedGrens} ) BroadcastMessageToPlayer(player, "Stop spamming!") return EVENT_DISALLOWED end end |