How to check how long a player has been holding a key down?

Started by Gabriel0314 on

Topic category: Help with MCreator software

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check how long a player has been holding a key down?

I am making a charging weapon and want to charge it with c. I do not know how to check how long i have been charging. Plz Help

 

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
U can make a Global variable…
Mon, 07/19/2021 - 08:39

U can make a Global variable and u can add 1 unit for each tick what the procedure is call for the key procedure.