Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 21 Fear Pt.1! Intro to Fear!
- //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
- //-----------------------------------------------------------
- //Note: A majority of fear functions only work when player is in a fear area
- //Activate a fear area's ability to apply fear to the player
- FearArea_SetGivesFear("Fear_1",true);
- //fearAreaName (String)- name of the fear area.
- //givesFear (bool)- should the area give player fear.
- //Add fear rate to the player
- FearHandler_SetForcedAddFearRate(0.7f, 10.0f, true, -1.0f, -1.0f, 0.0f);
- //addedFearRate (String)- how much fear rate should be added.
- //time (float)- how long the fear added fear should last in seconds.
- //gasp (float)- should tasi gasp (only applies if fear factor is over 0.4)
- //increaseSpeed (float)- speed at which fear rate should increase (-1.0f for global defaults)
- //decreaseSpeed (float)- speed at which fear rate should decrease (-1.0f for global defaults)
- //delay (float)- the amount of time the game should wait before applying the fear
- //Below is the collide callback used in today's episode
- bool OnCollide_Player_StairTrigger_1(const tString &in asParent, const tString &in asChild, int alState){
- if(alState == 1){
- FearArea_SetGivesFear("Fear_1", true);
- return false;
- }else{
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement