If there's any map_cache, delete it.
Also,this is the GOOD SCRIPT: (Copy-paste and replace it)
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "studydoorkey_1", "studydoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("studydoor", false, true);
PlaySoundAtEntity("", "unlock_door", "studydoor", 0, false);
RemoveItem("studydoorkey_1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
If you want to ask for help, go
here .
You are lucky that I found this thread. I don't usually come in this section.