playMaker

Author Topic: Explosion damage with array?  (Read 1545 times)

chrisb3d

  • Playmaker Newbie
  • *
  • Posts: 5
Explosion damage with array?
« on: November 24, 2019, 06:52:51 PM »
I'm trying to setup explosion damage and I thought I'd try using an array this time around. I haven't used them much.

I create an object at the explosion point and I want to add all of the objects around it with the tag "enemy" within a certain radius . I'm failing to see how to add all the of enemies within X distance.. I can get closest but I don't see how to find the next closest and clamp the distance for an explosion radius.

Anyone know how to set this up?

Thanks.
« Last Edit: November 25, 2019, 02:00:03 PM by chrisb3d »

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Explosion damage with array?
« Reply #1 on: November 25, 2019, 02:04:21 PM »
Use get next overlap circle 2d and apply damage to each one. You can bump the thread tomorrow, i can put up a screenshot of fsm, i dod exactly the same.thing for mines with damage radius
Available for Playmaker work

chrisb3d

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Explosion damage with array?
« Reply #2 on: November 27, 2019, 01:06:27 PM »
Hmm, interesting. Yeah, if you have a screen shot that would be awesome.


chrisb3d

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Explosion damage with array?
« Reply #3 on: December 03, 2019, 06:43:32 PM »
bump