Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Radial Damage Ignore Teamates

So just really quick and easy. I have characters and they all have a team variable set by text. I have a system set in place for projectiles to not do damage to teammates by giving the projectile the same team color as the actor that spawned it. On collision if the hit actor is the same team as the projectile. Nothing happens.

But Im having trouble with applying radial damage. How can I make a projectile create an explosion like radial damage. But make sure it doesn't apply that damage to any actor that would be my team mate?

Any ideas?

Product Version: UE 4.21
more ▼

asked Mar 27 '19 at 10:54 AM in Blueprint Scripting

avatar image

3 1 1 2

avatar image SupDeity Mar 27 '19 at 12:56 PM

Creating an explosion should have no effect on who you want to apply the damage to. i assume you use apply radial damage and a Any Damage or On Radial Damage Event to apply damage right? if you dont then i would say that you should use them.

i think that way you can get the damage causer's team variable and match it with the person which was in explosion range. if the team variable is same dont do anything. if not apply damage.

avatar image CatsyPatz Mar 27 '19 at 07:23 PM

Thank you for the reply. And yes I do use apply damage radial and a on any damage custom event in the projectile. When I said explosive, I meant an explosive type projectile BP. I didn't mean the affect or anything.

But could u maybe show me pics of an example? It could really help me understand exactly how to get these connections

avatar image SupDeity Mar 28 '19 at 07:13 AM

i think what you mean is spawning the projectile in. sorry english isnt my native language so i am bad at it. But if i understand this correctly what you have to do is basically spawn the projectile in and then when it explodes you use "apply radial damage" it will automatically according to setting you have done, apply a appropriate amount of damage. the damage done can be handled using on radial damage or any damage event to check whether the entity can be damaged or not by the projectile.

again, english isnt my native language so im bad at it. im sorry if i wrote something wrong :/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question