The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
[SOLVED] RemoveTimer doesn't work

Yea so i have the timer:



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

This timer triggers itself

This next script should remove the timer, but instead, nothing happens. The girl keeps crying.


void girl_flee_stop_timer(string &in asTimer)
{
PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false);
RemoveTimer("girl_cry");
StopSound("12_girl_cry", 0);
}

Why won't it stop?

The PlaySoundAtEntity("", "door_level_wood_open", "level_wood_1", 0, false); is working fine!

It's only the timer that doesn't stop

Trying is the first step to success.
(This post was last modified: 05-24-2012, 03:03 PM by FlawlessHappiness.)
05-20-2012, 06:41 PM
Find


Messages In This Thread
[SOLVED] RemoveTimer doesn't work - by FlawlessHappiness - 05-20-2012, 06:41 PM
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



Users browsing this thread: 1 Guest(s)