11-02-2011, 12:28 AM
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");
}
//____________________________________
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");
}
//____________________________________