Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repeat timer
Author Message
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #1
Repeat timer
Hello peoples,

How could I get a timer to repeat?

-X4anco

I like poop
06-18-2011 10:17 PM
Find all posts by this user Quote this message in a reply
DamnNoHtml Offline
Senior Member

Posts: 386
Joined: Sep 2010
Reputation: 11
Post: #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, and Insomnia
06-18-2011 10:25 PM
Find all posts by this user Quote this message in a reply
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #3
RE: Repeat timer
How would I make it stop after so many times?

I like poop
06-18-2011 10:26 PM
Find all posts by this user Quote this message in a reply
xiphirx Offline
Super Moderator

Posts: 662
Joined: Nov 2010
Reputation: 5
Post: #4
RE: Repeat timer
RemoveTimer() and a local variable?

06-18-2011 10:29 PM
Find all posts by this user Quote this message in a reply
X4anco Offline
Member

Posts: 140
Joined: Apr 2011
Reputation: 0
Post: #5
RE: Repeat timer
Ah thank-you Big Grin

I like poop
06-18-2011 10:29 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)