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
#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


Messages In This Thread
Breaking a wall - by stubbledam - 06-06-2012, 06:52 AM
RE: Breaking a wall - by Adny - 06-06-2012, 07:48 AM
RE: Breaking a wall - by stubbledam - 06-06-2012, 07:55 AM



Users browsing this thread: 1 Guest(s)