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
How i can reload script area when i die ? And how to create loopable sounds ?
rakakak11 Offline
Junior Member

Posts: 20
Threads: 3
Joined: Jul 2012
Reputation: 0
#6
RE: How i can reload script area when i die ? And how to create loopable sounds ?

hmm but the sounds not work....i really dont know why...

there is my script:


Quote:void OnEnter()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Zavalenie", true, 1);
}

void Zavalenie(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("explosion_rock_large.ogg", 0.8f);
StopMusic( 0, 50);
SetEntityActive("kamen1", true);
SetEntityActive("zombik", false);
StartScreenShake(0.5f, 1, 1, 0);
AddTimer("", 60, "ambients");
AddTimer("", 120, "ambients1");
AddTimer("", 10, "ambients2");
AddTimer("", 120, "ambients3");
}

void ambients(string &in asTimer)
{
PlaySoundAtEntity("", "scare_male_terrified1.ogg", "Player", 0.5f, false);
AddTimer("", 60, "ambients");
}
void ambients1(string &in asTimer)
{
PlaySoundAtEntity("", "scare_male_terrified2.ogg", "Player", 0.5f, false);
AddTimer("", 100, "ambients1");
}
void ambients2(string &in asTimer)
{
PlaySoundAtEntity("", "scare_wall_stomp4.ogg", "Player", 0.5f, false);
AddTimer("", 300, "ambients2");
}
void ambients3(string &in asTimer)
{
PlaySoundAtEntity("", "scare_male_terrified3.ogg", "Player", 0.5f, false);
AddTimer("", 250, "ambients3");
}

As you can see i putted more loopable sounds at once.. probably this is error


EDIT: deleted other sounds and still not working...
(This post was last modified: 07-31-2012, 11:08 PM by rakakak11.)
07-31-2012, 11:02 PM
Find


Messages In This Thread
RE: How i can reload script area when i die ? And how to create loopable sounds ? - by rakakak11 - 07-31-2012, 11:02 PM



Users browsing this thread: 1 Guest(s)