Frictional Games Forum (read-only)
[SCRIPT] How to make a breakable wall breake? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] How to make a breakable wall breake? (/thread-22599.html)

Pages: 1 2


How to make a breakable wall breake? - Wolfpa - 08-26-2013

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.


RE: How to make a breakable wall breake? - Kullin - 08-26-2013

(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?


RE: How to make a breakable wall breake? - summit - 08-26-2013

(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.


RE: How to make a breakable wall breake? - FlawlessHappiness - 08-26-2013

Engine scripts: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
All useful scripts are here.

AddPlayerSanity([INSERTNUMBER]); should do the trick


RE: How to make a breakable wall breake? - Your Computer - 08-26-2013

GiveSanityBoostSmall is better for giving the puzzle accomplishment feeling.


RE: How to make a breakable wall breake? - FlawlessHappiness - 08-26-2013

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


RE: How to make a breakable wall breake? - SilentStriker - 08-26-2013

SetPropHealth is easier. Also use GiveSanityBoostSmall


RE: How to make a breakable wall breake? - Wolfpa - 08-31-2013

Look guys what should I throw at the wall to brake?
Yes I know its a silly question but serious.With what!?


RE: How to make a breakable wall breake? - Kreekakon - 08-31-2013

A rock? A chair? Anything you like really.


RE: How to make a breakable wall breake? - FlawlessHappiness - 08-31-2013

(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.