In the laboratory part of the original amnesia, you go near this cave in with rocks and it starts making a moan sound and lots of dust comes out of it! Now I used this code from the original script of the lab into my script
void CollideScreamCave(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("monster_scream","04_scream.snt", "AreaCaveMonster", 0, false);
StartScreenShake(0.02f, 2.0f, 0.5f, 2.0f);
CreateParticleSystemAtEntity("breathps", "ps_cave_monster_scream.ps", "AreaCaveMonster", false);
AddTimer("scream1", 0.5f, "TimerCaveScream");
AddTimer("scream2", 1.0f, "TimerCaveScream");
AddTimer("scream3", 3.0f, "TimerCaveScream");
AddTimer("scream4", 5.0f, "TimerCaveScream");
}
void TimerCaveScream(string &in asTimer)
{
if(asTimer == "scream1"){
PlayGuiSound("react_scare", 0.8f);
GiveSanityDamage(10.0f, false);
FadeSepiaColorTo(0.5f, 0.025f);
FadeRadialBlurTo(0.1f, 0.025f);
SetRadialBlurStartDist(0.2f);
}
else if(asTimer == "scream2"){
}
else if(asTimer == "scream3"){
PlayGuiSound("react_creath", 0.8f);
FadeSepiaColorTo(0, 0.1f);
FadeRadialBlurTo(0, 0.1f);
}
else{
PlayGuiSound("react_creath", 0.6f);
}
}
and I made a script box called "Areascreamcave" just like the original but when I go play in my level, the script is not working? does anybody know why? oh and how do you make random sounds just like in the prison?