Destructive Design II

/
0 Comments
Progress on the explosive barrel. Mostly worried about the mechanics at the moment. I created a barrel that floats in zero gravity for my space level, with a pulsing green light to make sure players notice! If it is hit lightly it will release a particle effect for a couple of seconds before exploding! Here's a little teaser of it in UE4.



Here's the code - As you can see there are four main groups. The first group is to make the barrels spin around and make them more exciting that static floating barrels. If they were not moving then maybe it would look like they were a glitch.

Then, there is the hit registration area, that listens for hits hard enough to initiate either a damaged or destroyed state. The damaged state fires off a particle and after a couple of seconds then initiates the destroyed function. This function shoots off an explosion particle, a radial force AND damage actor, and then terminates the blueprint.

I also added in an event to initate the damaged function whenever a coolant cell is damaged. Looking forward, this will allow the cells to interact with any kinds of damage, be it from a collision with a car, to other coolant cell explosions, or even weapon damage from the cars weapons.





You may also like

No comments:

Powered by Blogger.