Well that didn't quite work...
SetSwingDoorLocked("doorlantern", false, false);
AddPropForce("doorlantern", 1, 1, 1, "");
Thats what I have at the moment...
I have also tried "World" instead of "".
Also tried different values at the coordinates.
I have also tried SetSwingDoorClosed("doorlantern", false, false).
It didn't work.
This is used by the Frictional Games, as far as I've seen.
void OnStart()
{
AddEntityCollideCallback("Player", "scaretrigger", "scareactivate", true, 1);
SetEntityCallbackFunc("lantern", "lanterndooractivate");
SetSwingDoorDisableAutoClose("doorlantern", true);
}
void scareactivate(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("scaremonster", true);
AddEnemyPatrolNode("scaremonster", "scaremonsterpath1", 0, "");
}
void lanterndooractivate(string &in entity, string &in type)
{
SetSwingDoorLocked("doorlantern", false, false);
AddPropForce("doorlantern", 1, 1, 1, "World");
}
Just posting this too if it helps.
EDIT: I noticed that the door only unlocks, but still auto-closes...
That's kinda vague if you ask me.
Does anyone know what could be it? :/