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
Looping custom sound?
Tomzzz Offline
Junior Member

Posts: 23
Threads: 7
Joined: Aug 2013
Reputation: 1
#1
Looping custom sound?

I want to loop my custom sound (which is working good) but i have to idea how to make loop script..
this is all i made but game crash , its not looping thro.. sound file is 19 seconds long and i want to make it loop at one area forever... possible?


PHP Code: (Select All)
void OnStart()
{  
    
PreloadSound("mstdrips.snt");
AddTimer("E1"0"Drops");
AddTimer("E2"19"Drops");
    } 

void Drops(string &in asTimer)
{
    
string x asTimer;
    if (
== "E1")
    {
        
PlaySoundAtEntity("""mstdrips.snt""ScriptArea_7"2false);
    } 
    else if (
== "E2"
    {
        
    
PlaySoundAtEntity("""mstdrips.snt""ScriptArea_7"2false);
    } 


Opssttt Loop was set to false that was the problem.. SOLVED
(This post was last modified: 08-08-2013, 09:05 PM by Tomzzz.)
08-08-2013, 08:30 PM
Website Find


Messages In This Thread
Looping custom sound? - by Tomzzz - 08-08-2013, 08:30 PM



Users browsing this thread: 1 Guest(s)