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
SetSwingDoorDisableAutoClose does not work
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#1
SetSwingDoorDisableAutoClose does not work

hi
i need to open a door dynamicaly using propforce
the thing is, SetSwingDoorDisableAutoClose does not work.

[...]
    SetSwingDoorDisableAutoClose("door", true);
    SetSwingDoorLocked("door", false, true);    
    AddTimer("",2,"asd");
   [...]

void asd(string &in asTimer){
    AddPropForce("door", 10000, 0, 0, "world");
}

i see the door going berserk because the high force, but it does not stay open.
when i try open the door a bit manualy the door auto-closes, too.

i am using the standard mansion door
(This post was last modified: 03-03-2013, 12:01 PM by darksky.)
03-03-2013, 11:58 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: SetSwingDoorDisableAutoClose does not work

FULL SCRIPT, PLEASE!

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-03-2013, 12:11 PM
Find
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#3
RE: SetSwingDoorDisableAutoClose does not work

no need for full script.

this is the relevant part. the rest is working properly and has no other function effecting the door
03-03-2013, 12:18 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: SetSwingDoorDisableAutoClose does not work

Try changing the true in the SetSwingDoorDisableAutoClose to false.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-03-2013, 12:21 PM
Find
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#5
RE: SetSwingDoorDisableAutoClose does not work

well, i have tried it before but since false means disableautoclose = false , it didn't work Smile
03-03-2013, 12:39 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: SetSwingDoorDisableAutoClose does not work

Instead of doing that, then set the door's "Open Amount" to 0.1 or 0.2

Trying is the first step to success.
03-03-2013, 01:02 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: SetSwingDoorDisableAutoClose does not work

Disabling auto-close does not place the door in an opened state. You need SetSwingDoorClosed for that.

Tutorials: From Noob to Pro
03-03-2013, 01:14 PM
Website Find
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#8
RE: SetSwingDoorDisableAutoClose does not work

ok, i think i forgot to mention that the door is initially locked.

i tried the open amount, but it seems to me that the open amount is applied after map load, not after the door is unlocked. so it did not work.

then i tried it with using doorClosed = false
void abc(string &in asParent,string &in asChild, int alState){    
    SetSwingDoorDisableAutoClose("door", false);    //1
    SetSwingDoorLocked("door", false, false);//2
    SetSwingDoorClosed("door", false, false);//3    
    AddTimer("",2,"asd");
}

void asd(string &in asTimer){
    AddPropForce("door", 1000, 0, 0, "world");
    AddDebugMessage("force",false);
}

but this did not work either, no matter the order of the 3 calls.
is still something wrong?

if not, and it's not working for an unknown reason, i think i will just set an other door active, not locked, open amount 0.15 , and apply force on that door >_>
(This post was last modified: 03-03-2013, 01:49 PM by darksky.)
03-03-2013, 01:49 PM
Find




Users browsing this thread: 1 Guest(s)