You are not understanding what I am saying.
void OnStart()
{
AddUseItemCallback("", "key_1", "level_celler_1", "UnlockLevelDoor", true);
}
void UnlockLevelDoor(string &in asItem,string &in asEntity)
{
SetLevelDoorLocked(asEntity, false);
RemoveItem(asItem);
}
That's his correct code. But if he puts the function in void OnLeave() (like he did) instead of void OnStart the function won't be linked the the callback in void OnStart.
(03-31-2012, 04:43 PM)abe.lloyd Wrote: it says cannotuseItem this way
If it says cannot use item this way it means you have not saved it or are not naming the things correctly. It works perfectly on my computer.