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


Messages In This Thread
RE: RemoveTimer doesn't work - by Putmalk - 05-20-2012, 07:29 PM
RE: RemoveTimer doesn't work - by Statyk - 05-20-2012, 07:36 PM
RE: RemoveTimer doesn't work - by Cranky Old Man - 05-20-2012, 07:54 PM
RE: RemoveTimer doesn't work - by Statyk - 05-20-2012, 07:59 PM
RE: RemoveTimer doesn't work - by Cranky Old Man - 05-24-2012, 12:49 PM
RE: RemoveTimer doesn't work - by Your Computer - 05-24-2012, 10:32 AM
RE: RemoveTimer doesn't work - by Acies - 05-24-2012, 10:32 AM
RE: RemoveTimer doesn't work - by FlawlessHappiness - 05-24-2012, 02:19 PM



Users browsing this thread: 2 Guest(s)