I still have problem with my closet script. My script is this:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "KeyCloset", "ClosetLock", "UnlockCloset", true);
}
void UnlockCloset(string &in asItem, string &in asEntity)
{
SetEntityActive("ClosetLock", false);
GiveSanityBoost();
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem("KeyCloset");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
When I use my key on the block box. It says. you can't use the item here. Like the key to door problem, will some one help me
Just say if you want pictures from the level editor to see how I spelled it in the boxes