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

Started by Gabriel0314 on Sun, 07/18/2021 - 02:44

Topic category: Help with MCreator software

Last seen on 02:25, 31. Jul 2021
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check how long a player has been holding a key down?
Sun, 07/18/2021 - 02:44

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:
  • Tracker tickets:
  • 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.