If you are using those mansion base doors I remember I had this problem too.
I had to put a timer to push it twice. Cause the first time fails, second time opens.
So, after you unlock the door, you add force then a timer to add force again. Give it like 0,5 seconds of delay.
In your case I would alter the function
Slam and add a timer to push the door again.
Original:
void Slam(string &in asTimer)
{
SetSwingDoorLocked("Door_B", false, true);
AddTimer("Ad", 0.35f, "AddForce");
}
New:
void Slam(string &in asTimer)
{
SetSwingDoorLocked("Door_B", false, true);
AddTimer("Ad", 0.35f, "AddForce");
AddTimer("Ad", 0.35f, "AddForce");
}
If you still have problems, try to add force to the door every time you interact with it and see if it opens at the second try or to what direction you need to add force.
I have this done in my mod, try that first, then I'll take a look at my scripts. I don't have the files here, I would have to download the mod from moddb.