08-05-2016, 03:09 PM
08-05-2016, 03:58 PM
PHP Code:
AddUseItemCallback("", "YourPotItem", "TheSlimeEntity", "slime", bool abAutoDestroy);
void slime(string &in asItem, string &in asEntity)
{
SetPropActiveAndFade("slime1", bool abActive, float afFadeTime);
}
You can put anything else in the callback like sounds and particles but that is the basic jist of it.
08-05-2016, 04:05 PM
It doesn't even have to be a pot. You could make it so you throw a sledgehammer at it and it breaks.