Aller au contenu

Photo

Help with UI coding


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
popcorn_eater

popcorn_eater
  • Members
  • 27 messages
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

#2
Olblach

Olblach
  • Members
  • 175 messages
yes with fake heartbeat

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 .