(05-02-2012 03:03 AM)bkrstirregular Wrote: .. I'm still confused ;_; Can I just copy the entire code that I have onto here?
Are you just confused about how it should look, or is the code still not working after you corrected it?
The corrected code should look like this:
OnStart()
{
//AddUseItemCallback
AddUseItemCallback("", "Key_1", "firstdoor1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("firstdoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "firstdoor1", 0, false);
RemoveItem("Key_1");
}