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
what the script Doorslam but reverse
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: what the script Doorslam but reverse

(12-27-2011, 03:08 PM)jessehmusic Wrote: hello i wounder if some one know the script for Door slam but the door slams up instead how do i script that if that even work any tip i can only find the normal door slam
PHP Code: (Select All)
void OnEnter()
{
    
AddEntityCollideCallback("Player", "doorslam_1_area", "func_slam", true, 1);
} 
 
void func_slam(string &in asParent, string &in asChild, int alState)
{
    
SetSwingDoorClosed("mansion_1", true, true);
    
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); 
    
PlaySoundAtEntity("", "react_scare", "Player", 0, false);  PlaySoundAtEntity("", "close_door.snt", "Player", 0, false); 
    
GiveSanityDamage(5.0f, true);
    
SetPlayerActive(false);
    
StartPlayerLookAt("mansion_1", 3.0f, 5.0f, "");
    
AddTimer("timerReleasePlayer", 1.5f, "timerReleasePlayer");
}

void timerReleasePlayer(string &in asTimer) {
    
SetPlayerActive(true);
    
StopPlayerLookAt(); 
Do you mean slam the door shut? Or slam the door up? Sorry, I'm confused as to what you need help with?


12-27-2011, 03:14 PM
Find


Messages In This Thread
RE: what the script Doorslam but reverse - by flamez3 - 12-27-2011, 03:14 PM



Users browsing this thread: 1 Guest(s)