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
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#2
RE: RemoveTimer doesn't work

Okay, I see it.

StopSound isn't stopping the correct sound. That's because you left your sound name blank (a practice I HIGHLY do not recommend, because then problems like this are so easy to happen).

Rewrite your sound function like this:
PlaySoundAtEntity("girlcry", "12_girl_cry", "mansion_5", 0.5f, false);


Then, StopSound("girlcry", 0); will work.

And start naming your sounds and callbacks. That will make problems like this easier to avoid as well as make your scripts easier to understand. Just name them simply so you can understand them. Just note that only certain functions support names, like PlaySound..., CreateParticleSystem..., AddUseItemCallback, AddTimer, etc.

Hope this helps!

(This post was last modified: 05-20-2012, 07:30 PM by Putmalk.)
05-20-2012, 07:29 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



Users browsing this thread: 1 Guest(s)