(01-10-2011, 11:59 PM)house Wrote: Heres the code:
if(HasItem("NAME OF ITEM") == true) {
Bla Bla Stuff Here
}
Example:
void OnStart()
{
if(HasItem("cutter_1") == true) {
bla bla
}
}
Thank you. Is that the correct way to do it? I did something else to make it work, but I aint sure if it's the correct one. I did it like this:
void OnStart()
{
SetEntityCallbackFunc("Storage_Key","PickUpKeyStorage");
}
then the PickUpKeyStorage function:
//Pick up storage key
void PickUpKeyStorage(string& asName, string& asCallback)
{
AddDebugMessage("Picked up the Storage Key.", false);
}
It surely works perfect, but is it correct? :p
Thanks!