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

Started by Gabriel0314 on

Topic category: Help with MCreator software

Last seen on 02:27, 8. Aug 2022
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

 

Last seen on 16:31, 21. Aug 2021
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.