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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Slam door and lock

I'll just point it out there.
Don't ever call yourself a noob. It can be used as a put down, and can make you think "Wow im so stupid for missing that". Even the professional coders on this site still make mistakes, missing some of the small things like, forgetting a {, semi-colons, even the </CATEGORY> in the .lang file. Nobody is perfect, and as long as you learn from your mistakes, you can work it all out Smile

Also, don't ever call anything a dumb post. We're all here to help (unless someone wants to troll).

Since you have solved your problem, I hope all goes well. Just make a new thread if you have any more issues. Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-11-2013, 03:37 PM by Romulator.)
05-11-2013, 03:37 PM
Find
Hauken Offline
Member

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

Thank you for such an motivational post!

I am defintly gonna need some help as i come closer to the end. Smile
05-11-2013, 05:10 PM
Find




Users browsing this thread: 1 Guest(s)