Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#15
RE: how to make floor break when u go to a certain area

Yes there is a script for that..
This is a script witch make the sound as the player is scared. and sorta confused.
Be free to use it.
-
PHP Code: (Select All)
void OnEnter()//Or where you prefer to have this effect.

{
AddTimer("scare"0.3f"TimerPlayerReact");    
AddTimer("breath"2.0f"TimerPlayerReact");    
AddTimer("breathl"4.0f"TimerPlayerReact");
AddTimer("breathl"6.0f"TimerPlayerReact");

PHP Code: (Select All)
void TimerPlayerReact(string &in asTimer)
{
    if(
asTimer == "scare"){
        
PlayGuiSound("react_scare"1.0f);
    }
    else if(
asTimer == "breath"){
        
PlayGuiSound("react_breath"0.8f);
    }
    else if(
asTimer == "breathl"){
        
PlayGuiSound("react_breath"0.5f);
    }    

(This post was last modified: 06-20-2014, 09:10 PM by DnALANGE.)
06-20-2014, 08:57 PM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by DnALANGE - 06-20-2014, 08:57 PM



Users browsing this thread: 1 Guest(s)