Hey I'm having trouble making this key go to a door which doesn't make sense for me, I have done this three times in a previous test map... If someone can take a look at it and tell me what the problem is please do. (note the key is key_1 and the door is firstdoor)
void Onstart()
{
AddUseItemCallback("useexit", "key_1", "firstdoor", "UseKey",true);
}
void UseKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
RemoveItem(asItem);
}
void Onstart()
{
AddUseItemCallback("useexit", "key_1", "firstdoor", "UseKey",true);
}
void UseKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
RemoveItem(asItem);
}