Frictional Games Forum (read-only)
[SCRIPT] How do you make a stone hammer break a 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: [SCRIPT] How do you make a stone hammer break a wall (/thread-14977.html)



How do you make a stone hammer break a wall - meneadeszz - 04-21-2012

Like the title says how do you make a stone hammer break a breakable wall.
I realy don't know which scipt i need to take from the functions page
can somebody help me


RE: How do you make a stone hammer break a wall - FragdaddyXXL - 04-21-2012

Which part do you need help with? Breaking the wall? Or using a stone hammer on it? Or both?



RE: How do you make a stone hammer break a wall - i3670 - 04-21-2012

I believe it works like this.

You need a script area, easy to find in the editor, and tick the box named "ItemInteraction" then simple use a PlayerInteractCallback thingymado.

If you wanna spice things up a bit you can put an inactive stone_hammer_static thing and script a timer to play an effect.


Edit: Sorry named the wrong Callback. It's supposed to AddUseItemCallback



RE: How do you make a stone hammer break a wall - FragdaddyXXL - 04-21-2012

In case it helps, you'll need to make this function call when you interact with the wall:
Ex. SetPropHealth("mansionbase_secret_passage_1", 0);



RE: How do you make a stone hammer break a wall - meneadeszz - 04-22-2012

(04-21-2012, 07:37 PM)FragdaddyXXL Wrote: Which part do you need help with? Breaking the wall? Or using a stone hammer on it? Or both?
I want When you picked up the hammer and use it on the brakable wall.
the wall breaks so you can go thourgh the wall


RE: How do you make a stone hammer break a wall - Cranky Old Man - 04-22-2012

(04-21-2012, 06:39 PM)meneadeszz Wrote: Like the title says how do you make a stone hammer break a breakable wall.
I realy don't know which scipt i need to take from the functions page
can somebody help me
How come you don't check out how Frictional Games did it in their maps? You are asking for a tutorial of several functions - something that people don't have time for.