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
Explode a rock barricade?
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
#1
Explode a rock barricade?

I haven't found a thread or a video on this yet, so I suppose this might be a bit complicated to script. In fact, I'm posting this topic because I actually have no idea where to even start.

You guys know the rock wall in Storage that needed to be taken out with an explosive? I'm trying to replicate the same explosion and clearing of path, only with the hammer and chipper (the combined item) instead. I'm not very certain on what scripts to use. Could any of you guys help me here?

Edit: I'm guessing on the level editor I'll need to place a bunch of rock entities to block a path, then fill the area where they're placed up with a script that indicates where the explosion will happen. In terms of actual scripting though, I'm clueless; I have no idea how to script the removing of the rock entities.

[Image: p229xcq]
(This post was last modified: 08-04-2012, 02:11 AM by Froge.)
08-04-2012, 02:07 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Explode a rock barricade?

If we're talking about entities/special/cave_in, then just reduce the entity's health to 0.

Tutorials: From Noob to Pro
08-04-2012, 02:41 AM
Website Find
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
#3
RE: Explode a rock barricade?

No. I've actually just placed a whole bunch of rock entities to fill up an opening in a wall and surrounded it with area scripts. Once the player uses the H & C item on any of these rock entities, particle systems go kaboom at the area scripts and all the rocks disappear.

I specifically need a function that says "All these rocks disappear."

Edit: And I'm a complete moron. One second after making this post I found the "SetEntityActive" function. Move along, folks, nothing to see here.

[Image: p229xcq]
(This post was last modified: 08-06-2012, 04:35 AM by Froge.)
08-06-2012, 04:32 AM
Find




Users browsing this thread: 2 Guest(s)