playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Explosion damage with array?
« previous
next »
Print
Pages: [
1
]
Go Down
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
»
Logged
Fat Pug Studio
Beta Group
Hero Member
Posts: 1294
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
Logged
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.
Logged
chrisb3d
Playmaker Newbie
Posts: 5
Re: Explosion damage with array?
«
Reply #3 on:
December 03, 2019, 06:43:32 PM »
bump
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Explosion damage with array?