camey25
|
  |
| Joined: 20 May 2010 |
| Total Posts: 16208 |
|
|
| 19 Feb 2012 10:04 AM |
You know how the terrain gets destroyed when it is hit by an explosion? Can you do something like this but with bricks. (I don't mean just put a wall of small bricks and leave them un-anchored)
So like a door, if it gets hit by rocket it'll explode but work otherwise?
"Don't find fault, find a remedy." |
|
|
| Report Abuse |
|
|
niels22
|
  |
| Joined: 23 Jan 2009 |
| Total Posts: 700 |
|
|
| 19 Feb 2012 11:00 AM |
| So, you mean remove bricks when hit by an explosion? |
|
|
| Report Abuse |
|
|
camey25
|
  |
| Joined: 20 May 2010 |
| Total Posts: 16208 |
|
|
| 19 Feb 2012 11:39 AM |
^ Pretty much, but after more than 1 hit.
"Don't find fault, find a remedy." |
|
|
| Report Abuse |
|
|
niels22
|
  |
| Joined: 23 Jan 2009 |
| Total Posts: 700 |
|
|
| 20 Feb 2012 08:52 AM |
That will require either 2:
1. The parts have a "Health" value in them 2. You make a table for parts that got "hit"
Example of 2. is here: hit = {} Explosion.Hit:connect(function (instance) for i = 1,#hit do if hit[i] == instance then instance:Destroy() else table.insery(hit,instance) --Did I mess up here? I always forget order >_< end end end) |
|
|
| Report Abuse |
|
|
camey25
|
  |
| Joined: 20 May 2010 |
| Total Posts: 16208 |
|
|
| 20 Feb 2012 03:35 PM |
^ Worked it out, thanks anyway.
►C25 - The next Explosive◄ |
|
|
| Report Abuse |
|
|