04-19-2013, 02:59 PM
I have a script set up that pushes a door open. The script works fine, however I find sometimes if you try to open the door (it starts out locked) when it comes to the script activating for some reason the door wont open. Here is the script:
Code:
void BLOWOPEN(string &in asParent, string &in asChild, int alState)
{
AddTimer("OPEN", 1, "OPEN");
SetSwingDoorLocked("castle_arched01_2", false, false);
SetSwingDoorDisableAutoClose("castle_arched01_2", true);
SetSwingDoorClosed("castle_arched01_2", false, false);
}
void OPEN(string &in asTimer)
{
AddPropImpulse("castle_arched01_2", 1, 0, 1.8, "world");
}