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
How do you make cave in roar?
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
How do you make cave in roar?

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?
(This post was last modified: 02-18-2014, 09:32 PM by Radical Batz.)
02-18-2014, 09:31 PM
Find


Messages In This Thread
How do you make cave in roar? - by Radical Batz - 02-18-2014, 09:31 PM
RE: How do you make cave in roar? - by Slanderous - 02-18-2014, 09:35 PM
RE: How do you make cave in roar? - by Mudbill - 02-18-2014, 10:19 PM
RE: How do you make cave in roar? - by Mudbill - 02-19-2014, 03:08 PM



Users browsing this thread: 1 Guest(s)