Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repeat timer
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Repeat timer

Hello peoples,

How could I get a timer to repeat?

-X4anco

...
06-18-2011, 10:17 PM
Find
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#2
RE: Repeat timer

Just call the timer inside itself.

void TimerTest (string &in asTimer)
{
AddTimer("", 1.0, "TimerTest");
}

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
06-18-2011, 10:25 PM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#3
RE: Repeat timer

How would I make it stop after so many times?

...
06-18-2011, 10:26 PM
Find
xiphirx Offline
Senior Member

Posts: 662
Threads: 16
Joined: Nov 2010
Reputation: 5
#4
RE: Repeat timer

RemoveTimer() and a local variable?

06-18-2011, 10:29 PM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#5
RE: Repeat timer

Ah thank-you Big Grin

...
06-18-2011, 10:29 PM
Find




Users browsing this thread: 1 Guest(s)