Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
could somebody write a simple script

blud
Guest
Quote
2023-05-26 04:20:55

could somebody write a simple script where if say you pressed a button it would do an action but instead of being able to spam that action it would wait however many milliseconds and then it would if the button is pressed again do that action if however much time has passed please


sven
Registered User
Quote
2023-05-26 12:30:00

https://www.ambiera.com/forum.php?t=8967

With this code action will executed one time .. you can execute action on keyDown or even keyUp


eoh
Guest
Quote
2023-05-26 18:05:43

Hi
you can do this with visual scripting

example

when key is pressed
1)if variable key > 60 for example .. execute action
2) set variable key to 0


every 1ms depending on the time you want
add 1 to key variable

this will restrict the action being made every 1 sec


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact