The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
what the script Doorslam but reverse

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(); 


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-27-2011, 03:08 PM
Website Find


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



Users browsing this thread: 1 Guest(s)