Throw an exploding object? - 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: Throw an exploding object? (/thread-14061.html) |
RE: Throw an exploding object? - Apjjm - 03-19-2012 Where are are the entities located? Are they in the entities folder? RE: Throw an exploding object? - Damascus - 03-19-2012 Yes, it is. Somehow, I got it to work, and I think I know what the problem was, even though it doesn't make sense to me. I keep each map stored in a different custom_story folder because i can't use dev mode. I have to load the custom story every time I want to test it. I put your entities in the folder for the very first map ("Festung," since I was going to end up putting the maps here in the end) and the map I was testing was in a different custom story folder ("Dungeon"). When I moved your entities over to the Dungeon custom story folder and retargeted them, they worked in game. This doesn't make a lot of sense to me. I targeted it in the Festung folder, even though it was a different location than the maps I was testing. Why shouldn't it work? Also i see the part of the code you're talking about is in the OnStart portion of the code, which you said couldn't be copied and pasted. What would I have to do instead? RE: Throw an exploding object? - Apjjm - 03-19-2012 (03-19-2012, 01:59 AM)Damascus Wrote: Yes, it is. Somehow, I got it to work, and I think I know what the problem was, even though it doesn't make sense to me.You will want the following: Code: //For each grenade... RE: Throw an exploding object? - Damascus - 03-19-2012 Alright, I put the following in my OnStart section: explosions_AddExplosiveItem("fulm_gold","grenade1_explosion.ent",2,10000,110); explosions_InitExplosiveItemMesh("fulm_gold"); It doesn't destroy the door, but I'm just going to use the script to do it, I think! (And make up some excuse for when it explodes just by touching the script area, like the chemical reacts strongly with metal) Either way, I'm very happy this is all working, thanks for being so patient and helping me out! RE: Throw an exploding object? - Apjjm - 03-19-2012 No problem - good luck with the rest of your story . |