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
Breaking a wall
stubbledam Offline
Junior Member

Posts: 4
Threads: 2
Joined: Jun 2012
Reputation: 0
#1
Breaking a wall

How do i make it so you can use a Hammer and Chipper to break down a wall, So it has a hole in it so you can walk through, Also the wall im useing is a Static object. Thanks
06-06-2012, 06:52 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Breaking a wall

You cannot use scripts on a static wall, therefore you can break it. The walls compatible with script are located in entities>special (these are the mansions base and castle/worn cell base walls)

The script you are looking for is SetPropHealth. If you look this up on the following page, you can set the Health value of your wall to zero:

http://wiki.frictionalgames.com/hpl2/amn..._functions


To set up the script for it in the level editor, you need to creator a script area that is the size of the wall, cover the wall with it, and then click the "Area" tab, and check the box that says "Item Interaction", and add a "AddUseItemCallback" for your script.

For the full effect, use particle systems and sounds in a timer. If you have any further questions, or if I didn't explain it well enough, feel free to ask for further assistance.

I rate it 3 memes.
06-06-2012, 07:48 AM
Find
stubbledam Offline
Junior Member

Posts: 4
Threads: 2
Joined: Jun 2012
Reputation: 0
#3
RE: Breaking a wall

(06-06-2012, 07:48 AM)andyrockin123 Wrote: You cannot use scripts on a static wall, therefore you can break it. The walls compatible with script are located in entities>special (these are the mansions base and castle/worn cell base walls)

The script you are looking for is SetPropHealth. If you look this up on the following page, you can set the Health value of your wall to zero:

http://wiki.frictionalgames.com/hpl2/amn..._functions


To set up the script for it in the level editor, you need to creator a script area that is the size of the wall, cover the wall with it, and then click the "Area" tab, and check the box that says "Item Interaction", and add a "AddUseItemCallback" for your script.

For the full effect, use particle systems and sounds in a timer. If you have any further questions, or if I didn't explain it well enough, feel free to ask for further assistance.

Thank you, very helpful!
06-06-2012, 07:55 AM
Find




Users browsing this thread: 1 Guest(s)