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

Started by Gabriel0314 on

Topic category: Help with MCreator software

Active 3 years ago
Joined Aug 2019
Points:
705

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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

 

Active 4 years ago
Joined Jul 2021
Points:
580

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
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.