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 to make a breakable wall breake?
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#1
How to make a breakable wall breake?

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.
(This post was last modified: 08-26-2013, 12:58 PM by Wolfpa.)
08-26-2013, 12:57 PM
Find
Kullin Offline
Member

Posts: 218
Threads: 23
Joined: May 2013
Reputation: 3
#2
RE: How to make a breakable wall breake?

(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
Find
summit Offline
Senior Member

Posts: 273
Threads: 20
Joined: Jun 2013
Reputation: 7
#3
RE: How to make a breakable wall breake?

(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.
08-26-2013, 04:26 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: How to make a breakable wall breake?

Engine scripts: http://wiki.frictionalgames.com/hpl2/amn..._functions
All useful scripts are here.

AddPlayerSanity([INSERTNUMBER]); should do the trick

Trying is the first step to success.
08-26-2013, 04:41 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: How to make a breakable wall breake?

GiveSanityBoostSmall is better for giving the puzzle accomplishment feeling.

Tutorials: From Noob to Pro
08-26-2013, 06:12 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: How to make a breakable wall breake?

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

Trying is the first step to success.
08-26-2013, 07:46 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#7
RE: How to make a breakable wall breake?

SetPropHealth is easier. Also use GiveSanityBoostSmall

(This post was last modified: 08-26-2013, 09:45 PM by SilentStriker.)
08-26-2013, 09:41 PM
Find
Wolfpa Offline
Junior Member

Posts: 14
Threads: 3
Joined: Aug 2013
Reputation: 0
#8
RE: How to make a breakable wall breake?

Look guys what should I throw at the wall to brake?
Yes I know its a silly question but serious.With what!?
08-31-2013, 12:11 PM
Find
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#9
RE: How to make a breakable wall breake?

A rock? A chair? Anything you like really.

[Image: Tv0YgQb.gif]
Image by BandyGrass
08-31-2013, 12:20 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: How to make a breakable wall breake?

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

Trying is the first step to success.
08-31-2013, 01:20 PM
Find




Users browsing this thread: 1 Guest(s)