Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How do you make a stone hammer break a wall
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#1
How do you make a stone hammer break a wall

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
04-21-2012, 06:39 PM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#2
RE: How do you make a stone hammer break a wall

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

Dark Seclusion Here
04-21-2012, 07:37 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#3
RE: How do you make a stone hammer break a wall

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

"What you think is irrelevant" - A character of our time

A Christmas Hunt
(This post was last modified: 04-21-2012, 09:19 PM by i3670.)
04-21-2012, 09:15 PM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#4
RE: How do you make a stone hammer break a wall

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);

Dark Seclusion Here
04-21-2012, 09:38 PM
Find
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#5
RE: How do you make a stone hammer break a wall

(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-22-2012, 01:11 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#6
RE: How do you make a stone hammer break a 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.


Noob scripting tutorial: From Noob to Pro

04-22-2012, 01:34 PM
Find




Users browsing this thread: 1 Guest(s)