Frictional Games Forum (read-only)

Full Version: How to make a breakable wall breake?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi guys, its me again.


When I published my first CS (http://www.mediafire.com/?y851ola18vw9y03) the comments were not so bad but someone wrote I should make more complex maps so I started working on it.

I was trying to find a tutorial about how to make a breakable script, but nothing.So I saw someone write that the breakable wall is designed so when a object collides with the wall it should brake, and of course it didn't worked to me so pls help.
(08-26-2013, 12:57 PM)Wolfpa Wrote: [ -> ]Hi guys, its me again.


When I published my first CS (http://www.mediafire.com/?y851ola18vw9y03) the comments were not so bad but someone wrote I should make more complex maps so I started working on it.

I was trying to find a tutorial about how to make a breakable script, but nothing.So I saw someone write that the breakable wall is designed so when a object collides with the wall it should brake, and of course it didn't worked to me so pls help.

Im on my phone so I cant give the script right now!

But what you wanna do is make the script so when, for example a stone, hits the wall you want to set the wall entity inactive and then set the brooken wall active. With me so far?
Then you just add some particles and stones falling!

Do you understand?
(08-26-2013, 02:04 PM)Kullin Wrote: [ -> ]
(08-26-2013, 12:57 PM)Wolfpa Wrote: [ -> ]Hi guys, its me again.


When I published my first CS (http://www.mediafire.com/?y851ola18vw9y03) the comments were not so bad but someone wrote I should make more complex maps so I started working on it.

I was trying to find a tutorial about how to make a breakable script, but nothing.So I saw someone write that the breakable wall is designed so when a object collides with the wall it should brake, and of course it didn't worked to me so pls help.

Im on my phone so I cant give the script right now!

But what you wanna do is make the script so when, for example a stone, hits the wall you want to set the wall entity inactive and then set the brooken wall active. With me so far?
Then you just add some particles and stones falling!

Do you understand?
You are right, but when he broke it, he can give a sanity boost so this will be a good effect and make it realistic.
Engine scripts: http://wiki.frictionalgames.com/hpl2/amn..._functions
All useful scripts are here.

AddPlayerSanity([INSERTNUMBER]); should do the trick
GiveSanityBoostSmall is better for giving the puzzle accomplishment feeling.
Don't they work the same way, except you can choose the value yourself in one of them?

The effects will still play sanity isn't full already
SetPropHealth is easier. Also use GiveSanityBoostSmall
Look guys what should I throw at the wall to brake?
Yes I know its a silly question but serious.With what!?
A rock? A chair? Anything you like really.
(08-31-2013, 12:20 PM)Kreekakon Wrote: [ -> ]A rock? A chair? Anything you like really.

Well, anything that is throwable. All entities that aren't static, as long as they're appearing in the script.
Pages: 1 2