Frictional Games Forum (read-only)

Full Version: Slime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I make Slime dissappear like the first quest in the original game in the entrance hall?
PHP Code:
AddUseItemCallback("""YourPotItem""TheSlimeEntity""slime"bool abAutoDestroy);

void slime(string &in asItemstring &in asEntity)
{
SetPropActiveAndFade("slime1"bool abActivefloat afFadeTime);


You can put anything else in the callback like sounds and particles but that is the basic jist of it. Wink
It doesn't even have to be a pot. You could make it so you throw a sledgehammer at it and it breaks.