void OnStart (){
AddUseItemCallback("", "StrangeDoorKey", "YOLO", "UsedKeyOnDoorYOLO", 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 UsedKeyOnDoorYOLO(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("YOLO", false, true);
PlaySoundAtEntity("", "Unlock_door", "YOLO", 0, false);
RemoveItem("StrangeDoorKey");
}
void OnEnter()
{
}
void OnLeave()
{
}