Frictional Games Forum (read-only)

Full Version: How to enter level hub door when you unlock it? (SOLVED) Delete thread if you want!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Yep i have problem I have level door and its locked and it only unlocks when you use key! Well... i can hear the door sound when its locked then when i use key to hear unlock sound but problem is "Why i cant enter level door then?"

Door script:

AddUseItemCallback("", "Prison Entrance Key", "level_celler_1", "KeyOnDoor3", true);

void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_1", false, true);
RemoveItem("Prison Entrance Key");
PlaySoundAtEntity("", "unlock_door.snt", "level_celler_1", 0.0f, true);
}