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
[SOLVED] RemoveTimer doesn't work
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: RemoveTimer doesn't work

Im sorry, but i actually edited my post, saying that it didn't work... I will try again..

EDIT: And actually now it works..

I had the script:

void cry_1_timer(string &in asTimer)
{
PlaySoundAtEntity("12_girl_cry", "12_girl_cry", "mansion_5", 0.5f, false);
AddTimer("girl_cry", 30, "cry_1_timer");
}

Which makes the girl gry repeatly

But then i noticed that in my void OnStart()

There was this line:

AddTimer("", 30, "cry_1_timer");

Which didn't have a name. Renamed it to "girl_cry" and now it works... Thanks!

And sorry for being stupid Sad

Trying is the first step to success.
(This post was last modified: 05-24-2012, 02:43 PM by FlawlessHappiness.)
05-24-2012, 02:19 PM
Find




Users browsing this thread: 1 Guest(s)