05-13-2011, 06:47 PM
Hey guys, I'm once again trying to get something to work, and it just doesn't...
I'm trying to get a door open with a needle, but it just says that I cannot use the needle that way
Can anybody tell me what's wrong?
I'm trying to get a door open with a needle, but it just says that I cannot use the needle that way
Code:
void OnStart()
{
AddUseItemCallback("", "HollowNeedle", "GamesDoor", "UsedItemOnDoor", true);
}
void UsedItemOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", "GamesDoor", 0, false);
RemoveItem(asItem);
}
Can anybody tell me what's wrong?