#basic throttle function?

1 messages · Page 1 of 1 (latest)

cloud monolith
#

I've been trying for the past 2? hours to get a basic ass throttle function running to prevent the game from spamming messages on interact events. No success so far.
Can anybody help me? (using getAbsoluteTime as timestamp)

silk wedgeBOT
#
How To Ask Good Questions

Be specific and include relevant details about the question upfront.

  • What are you trying to accomplish?
  • If you have code, which part is not working? Any content logs?
  • What have you already tried?
  • Have you searched the Bedrock Wiki?

https://xyproblem.info/

proven anchor
#

I think that event has a built in I am not sure of the name but like isFristTrigger. Which allows to detect if the player holds down an item. It's not a throttle function but it might work for your needs?

cloud monolith