06-30-2012, 01:51 AM
Hi, I'd like to make it so my dagger that the user can find is able to puncture through a keg to allow it to flow out the containments, here is my code
But, when approached with the knife and attempted to be used on it says "No object to use item on" or something like that.
Code:
//===========================================
// This runs when the player enters the map
void OnEnter()
{
AddUseItemCallback("popgoesthekeg", "breakkegknife", "winekeg", "boomkegopen", true);
}
void boomkegopen(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("bruto2", "put_knife.snt", "Player", 0.0f, false);
SetEntityActive("breakkeg_1", true);
}
But, when approached with the knife and attempted to be used on it says "No object to use item on" or something like that.