Alright, I've been putting this off because I wanted to figure it out on my own but now I have no idea what I'm doing wrong. I made a key and a level door, and I want the two of them to get along.
What's wrong with this code? When I attempt to use the key on the door it just says "Can't use item this way."
void onStart()
{
AddUseItemCallback("", "keysimple1", "mhbedroomdoor", "MHBedroom", true);
}
///
/// DOORS ///
///
void MHBedroom(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("mhbedroomdoor", false);
PlaySoundAtEntity("", "unlock_door.snt", "mhbedroomdoor", 0.0f, true);
RemoveItem("keysimple1");
}
After this is sorted out, I can then make another progress video. The dining room is finished, though I'm probably gonna leave it out of the first map and use a level door to get to it.