I need to know if there is a way to run a script every six seconds from ui. I need it to start executing when specific button is pushed, and so that it would stop running when this very button is pushed again.
Multiplayer only
Help with UI coding
Débuté par
popcorn_eater
, oct. 17 2010 06:42
#1
Posté 17 octobre 2010 - 06:42
#2
Posté 17 octobre 2010 - 07:22
yes with fake heartbeat
The script would (set a flag and call a pseudo hb script) OR (unset the flag if it was set). The pseudo hb script would check the flag and stop calling itself if the flag is unset.
DelayCommand(6.0, ExecuteScript(...
The script would (set a flag and call a pseudo hb script) OR (unset the flag if it was set). The pseudo hb script would check the flag and stop calling itself if the flag is unset.
Modifié par Olblach, 17 octobre 2010 - 07:28 .





Retour en haut






