Frictional Games Forum (read-only)
How to make an entity disappear when an item is clicked on it - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: How to make an entity disappear when an item is clicked on it (/thread-5726.html)



How to make an entity disappear when an item is clicked on it - LoneWolf - 12-14-2010

As title says. I have the entity, the particle effects to occur and the sound. I just dont know the script to use to make the scripts all occur.

i am using a chemical jar which liek in the game once i click on the slime web it should disappear. I also have the entity active function down. All i need is the script which activates it all when i click on it using the item (chemical jar).


RE: How to make an entity disappear when an item is clicked on it - Frontcannon - 12-14-2010

AddUseItemCallback -> chemJar on Slime -> SetEntityActive("slime", false);


RE: How to make an entity disappear when an item is clicked on it - LoneWolf - 12-14-2010

Thanks, i was using a collidecallback... no idea why.