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
Slam door and lock
Hauken Offline
Member

Posts: 62
Threads: 19
Joined: Jul 2012
Reputation: 1
#1
Slam door and lock

Hi, im working on a chase sequence in my custom story, I've managed to figure out how to slam the door with some creepy effects thanks to the wiki.

I've been trying to get the door locked just after it slams.. But it doesnt work.

void func_slam(string &in asParent, string &in asChild, int alState)

{
SetSwingDoorClosed("doorslammer", true, true);
SetSwingDoorLocked("doorslammer", false, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
PlaySoundAtEntity("", "fear2.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}

Figured it, sorry for this dumb post.. had to change the false value for locked door...

Im such a noob....
(This post was last modified: 05-11-2013, 02:28 PM by Hauken.)
05-11-2013, 02:25 PM
Find


Messages In This Thread
Slam door and lock - by Hauken - 05-11-2013, 02:25 PM
RE: Slam door and lock - by Romulator - 05-11-2013, 03:37 PM
RE: Slam door and lock - by Hauken - 05-11-2013, 05:10 PM



Users browsing this thread: 1 Guest(s)