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"true1);

 
void func_slam(string &in asParentstring &in asChildint alState)
{
    
AddPropImpulse("doorslam_1"500"world");
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false); 
    
PlaySoundAtEntity("""react_scare""Player"0false);  PlaySoundAtEntity("""close_door.snt""Player"0false); 
    
GiveSanityDamage(5.0ftrue);
    
SetPlayerActive(false);
    
StartPlayerLookAt("doorlsam_1"3.0f5.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)