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
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#7
RE: what the script Doorslam but reverse

it stills close the door :S
This is how it looks
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)
{
    
AddPropImpulse("doorslam_1", 5, 0, 0, "world");
    
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("doorlsam_1", 3.0f, 5.0f, "");
    
AddTimer("timerReleasePlayer", 1.5f, "timerReleasePlayer");
}

void timerReleasePlayer(string &in asTimer) {
    
SetPlayerActive(true);
    
StopPlayerLookAt();
} 

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 12-27-2011, 03:42 PM by jessehmusic.)
12-27-2011, 03:39 PM
Website Find


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



Users browsing this thread: 1 Guest(s)