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
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


Messages In This Thread
Door not auto-closing - by Damascus - 10-21-2013, 03:43 AM
RE: Door not auto-closing - by Rapture - 10-22-2013, 12:45 AM
RE: Door not auto-closing - by Damascus - 10-23-2013, 02:39 AM



Users browsing this thread: 1 Guest(s)