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 Force Won't Open Door!
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
Door Force Won't Open Door!

Okay... So everyone makes maps with a door that swings open on it's own.
and I need that in my map... But for some reason that I can CEASE to
understand is that the door DOES NOT OPEN on its own. It pushes out for a
moment but shoots RIGHT BACK to the closed position, no matter how high
I put the coordinate values. I used the wiki, other scripts, and it's
failing to do as it is told. Coulc someone for the life of me, tell me
what the fack I am doing wrong? My script:

//____________________________________
void OnStart()
{
AddEntityCollideCallback("Player", "OpenDoor", "pushdoor", true, 1);
}
void pushdoor(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Dog_door", false, true);
SetSwingDoorDisableAutoClose("Dog_door", true);
AddPropForce("Dog_door", 0, 0, 15000, "world");
}
//____________________________________
(This post was last modified: 11-02-2011, 12:28 AM by Statyk.)
11-02-2011, 12:28 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Door Force Won't Open Door!

Try disabling the autoclose before you try to open the door with SetSwingDoorClosed.

Tutorials: From Noob to Pro
11-02-2011, 12:33 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Door Force Won't Open Door!

(11-02-2011, 12:33 AM)Your Computer Wrote: Try disabling the autoclose before you try to open the door with SetSwingDoorClosed.
Did that AND deleted the doorframe. It's still not working. It's like the door is getting caught on itself... This script has NEVER wanted to work for me.
11-02-2011, 12:55 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Door Force Won't Open Door!

(11-02-2011, 12:55 AM)Statyk Wrote: Did that AND deleted the doorframe. It's still not working. It's like the door is getting caught on itself... This script has NEVER wanted to work for me.

Then i can only suggest to pull the door out of its frame (perhaps even in the air) and test it out. If it still doesn't work, then try a negative value for the prop force. If it works then, then the issue was improper placement of the door. If it still doesn't work, then i don't know (aside from cache conflicts).

Tutorials: From Noob to Pro
11-02-2011, 01:16 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Door Force Won't Open Door!

(11-02-2011, 01:16 AM)Your Computer Wrote:
(11-02-2011, 12:55 AM)Statyk Wrote: Did that AND deleted the doorframe. It's still not working. It's like the door is getting caught on itself... This script has NEVER wanted to work for me.

Then i can only suggest to pull the door out of its frame (perhaps even in the air) and test it out. If it still doesn't work, then try a negative value for the prop force. If it works then, then the issue was improper placement of the door. If it still doesn't work, then i don't know (aside from cache conflicts).
Maybe your pushing the door so hard it comes back to the frame? Try lowering to like 10 or something./

11-02-2011, 02:42 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: Door Force Won't Open Door!

(11-02-2011, 02:42 AM)flamez3 Wrote: Maybe your pushing the door so hard it comes back to the frame? Try lowering to like 10 or something./
I'll give that a shot, thanks...


11-02-2011, 02:44 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Door Force Won't Open Door!

I suppose i should mention that you don't need more than 1000 force for an instantly opening door; 500 for a slowly opening door.

Tutorials: From Noob to Pro
11-02-2011, 02:55 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Door Force Won't Open Door!

(11-02-2011, 02:55 AM)Your Computer Wrote: I suppose i should mention that you don't need more than 1000 force for an instantly opening door; 500 for a slowly opening door.
That could be a big issue.... >> would setting it too high make it freak out like it is doing? lol It nearly broke off it's hinges.
11-02-2011, 03:51 AM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#9
RE: Door Force Won't Open Door!

What do you have the force set at right now?

-Grey Fox

Current Project
Forgotten
11-02-2011, 04:04 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#10
RE: Door Force Won't Open Door!

Try using AddPropImpulse. It functions the same way but the values necessary to move the prop are way lower.

11-02-2011, 04:21 AM
Find




Users browsing this thread: 1 Guest(s)