Frictional Games Forum (read-only)

Full Version: How do you make a stone hammer break a wall
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Which part do you need help with? Breaking the wall? Or using a stone hammer on it? Or both?
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
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);
(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
(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.