Frictional Games Forum (read-only)
Making chemical jars explode - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Making chemical jars explode (/thread-10088.html)



Making chemical jars explode - sgthale - 09-01-2011

how do you make it so when you throw something at a placed chemical jar, it will explode? Is there a callback for collision?


RE: Making chemical jars explode - Obliviator27 - 09-01-2011

AddEntityCollideCallback("[Object thrown]", "[Jar Name]", "[Explosion function]", true, 1);


RE: Making chemical jars explode - MegaScience - 09-01-2011

The code for it is in maps/ch01/12_storage.hps. You can also open the map itself in the Level Editor and check any specific settings in the area.