Yes I know, I was on Frictional Games Wiki, but didn't think that it is possible to sxript it so easy...
Thanks, it worked absolutely perfect.
If other people have the same problem as me, here is how you should script it:
1. First lock the door in the level editor.
void OnStart()
{
SetEntityCallbackFunc("lantern", "OnPickup");
}
void OnEnter()
void OnPickup(string &in asEntity, string &in type)
{
SetSwingDoorLocked("door", false, true);
}
Thats all! If you want to know how to do the message part watch
here!
Hope It was helpful...
Greets, and thank you CrazyArts!
-iFondue