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
Door not auto-closing
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Door not auto-closing

I'm currently using the wood_panneling_secret_door_01_painting entity from MFP in my story, and attempting to use a lever to make it swing open. However, it seems like no matter what I do, I can't turn off AutoClose. Here's my current script:

PHP Code: (Select All)
void TimerPushCandle(string &in asTimer)
{
    
SetSwingDoorLocked("castle_4"falsefalse);
    
SetSwingDoorClosed("castle_4"falsefalse);
    
SetSwingDoorDisableAutoClose("castle_4"true);
    
AddBodyForce("castle_4_Body_door"0.0f0.0f8000.0f"world");


This script works on all my other doors, including MFP's secret_door02 entity. But when I run the script on this door, it unlocks but does not swing open. And when I swing it open and closed manually, it still auto-closes when it gets close enough to fully closed. Any help?

(This post was last modified: 10-23-2013, 02:45 AM by Damascus.)
10-21-2013, 03:43 AM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Door not auto-closing

Make a Area that when your "secret_door02" touches, it freezes it.

As a test, wait a second and unfreeze it and see what it does.
10-22-2013, 12:45 AM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#3
RE: Door not auto-closing

I ended up mostly fixing the problem; "Body_door" was supposed to be "door_body."

It still auto-closes, but the force pushed it open, and I just disabled interaction.

10-23-2013, 02:39 AM
Find




Users browsing this thread: 2 Guest(s)