Quote:
Originally Posted by fysiks
Probably need to detect the IN_ATTACK button and calculate how long it is active. If more than 2 seconds, call your function. There are several threads around here that show how to check when IN_ATTACK is pressed and released.
|
I think I will set a task when a player starts holding IN_ATTACK and remove the task when he releases it. That way I don't have to calculate how long the user has been holding the attack key.