![]() |
Help with breakable wall!! - 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: Help with breakable wall!! (/thread-21158.html) |
Help with breakable wall!! - AtraNox - 04-13-2013 I wanted to make the player respawn in a cellar when he dies, and to get out he has to break the wall, just like in the main story.. But when I test the map the wall isn't breakable and the hand icon doesn't appear. Do you have any idea on what might be the problem? Thank you ![]() RE: Help with breakable wall!! - i3670 - 04-13-2013 Does the player require a tool to break the wall? Do you have an area infront of the wall with ItemInteraction checked? RE: Help with breakable wall!! - AtraNox - 04-13-2013 (04-13-2013, 05:33 PM)i3670 Wrote: Does the player require a tool to break the wall? Do you have an area infront of the wall with ItemInteraction checked? No i wanted to make that the player has to hit the wall with something like a big throwable rock or a metal chair.. RE: Help with breakable wall!! - VeNoMzTeamHysterical - 04-13-2013 Script to break wall with hammer Spoiler below!
Make a script area called Impact on the wall so there is gonna be dust. Also name brick pieces frament1/2/3 you can make more if you liked to. RE: Help with breakable wall!! - PutraenusAlivius - 04-14-2013 (04-13-2013, 06:11 PM)VeNoMzTeamHysterical Wrote: Script to break wall with hammerYOU. READ. IT. WRONG. He wants the wall to be crushed by ANYTHING. Create an area at the part where it's supposed to appear. And now, try this one out. Spoiler below!
RE: Help with breakable wall!! - FlawlessHappiness - 04-14-2013 I don't think this line will work: AddEntityCollideCallback("", "AREANAME", "WallCrush", true, 1); Since you have no asParent, there will be no collision, and therefore the callback will not call. Instead, you can define all the objects you're gonna need. Call all the objects: "BreakWall_1, BreakWall_2, BreakWall_3 etc. After that, create a for-script, and make it work with the collide function, so you can write: AddEntityCollideCallback("BreakWall_"+i, "AREANAME", "WallCrush", true, 1); |