void PlayerScare(string &in asParent, string &in asChild, string &in alState)
{
if(GetSwingDoorClosed(asEntity) == false)
{
SetSwingDoorClosed("AwaysLockedDoor", true, "true");
AddTimer("Lock", float (1.0), "LockDoor");
}
}
Quote:SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
has to be like this :
SetSwingDoorClosed("""Name of your door", true or false, true or false);
So choose OR true OR false,like :
SetSwingDoorClosed("""Name of your door", true,false);
For your script as it is now no need to write bool AND true.
Bool = true or false.
Here is an example from me, try playing with it :
SetSwingDoorLocked("door1", false, false);
SetSwingDoorClosed("door1", false, false);
-
void Bathroomdoor(string &in asEntity)
{
if(GetSwingDoorLocked(asEntity) == true)
{
//DO SOMETHING HERE/ Put your script here. Only when touching the door and have (Bathroomdoor) set in your leveleditor as PlayerInteractCallBack.
}
}