void OnStart ()
{
AddUseItemCallback("", "StrangeDoorKey", "StrangeDoor", "UnlockStrangeDoor", false);
SetEntityCallbackFunc("GuestRoomKey", "jump");
AddUseItemCallback("", "GuestRoomKey", "door01", "UsedKeyOnDoor", false);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door01", false, true);
PlaySoundAtEntity("", "Unlock_door", "door01", 0, false);
RemoveItem("GuestRoomKey");
}
void jump(string &in asEntity, string &in type)
{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "12_girl_scream.snt", "corpse01", 0, false);
StartScreenShake(0.5f, 2, 0, 0.25);
}
void UnlockStrangeDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("StrangeDoor", false, true);
PlaySoundAtEntity("", "Unlock_door", "YOLO", 0, false);
RemoveItem("StrangeDoorKey");
}