12-27-2011, 03:08 PM
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:
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();