x

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"

Projectile ignor team mates

Hello.

How Can I get my projectile owner? I'm making team shooter and I need, that team sniper can't hit his team member. Projectile recognize in that team is the hit actor. but I don't know how to check it for person who shoot projectile. So here you can see how I call my projectile:

https://gyazo.com/e64391288522657ca3c651151a0f2bcd

These is my projectile event graph:

https://gyazo.com/c93de847df02d66f500d1361f4ab0175

And these is my Set Damage function, where I check if I try to hit team member:

https://gyazo.com/d5b4cc5bf1266362dafccf63f69e1605

Product Version: UE 4.19
Tags:
more ▼

asked May 31 '18 at 09:47 PM in Blueprint Scripting

avatar image

Freymox
41 2 2 7

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

1 answer: sort voted first

You could save the instigator actor when you spawn the projectile actor, and upon hit you query this actor and put the logic there.

Alternatively you could setup two custom collision channels in project settings, one for team and one for enemy. And then set the collision response to ignore.

more ▼

answered Jun 01 '18 at 07:57 AM

avatar image

BreakMaker
242 5 11 17

avatar image Freymox Jun 01 '18 at 08:18 AM

I'm still new to UE. Can you help me with a bit more detailed information how to do it?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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