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"

How to NOT detect Player pawn with pawn sensing?

I thought this would be easy but I can't seem to find any simple solutions.

I have a AI follower that I want to attack enemies. Currently his pawn sensing picks up my character also though and attacks both enemies and my character.

How can I make it so that the alt textpawn sensing or linetracing ignores me?

I have tried using the line trace ignore actor and ive tried to differentiate the classes to no avail.


Product Version: UE 4.21
ignorelinetrace.jpg (171.4 kB)
linetrrace.jpg (124.9 kB)
more ▼

asked Mar 09 '19 at 03:35 AM in Blueprint Scripting

avatar image


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

1 answer: sort voted first

There are many many ways to accomplish the same thing. I create custom collision channels for players, neutral, and enemies and line trace from those. If a friendly unit is shooting, I have a player collision type tracing against an enemy+world static type.

In the above screen shot, if the trace initiates from the AI object, it should ignore just from the fact of having Ignore Self checked. You, as well, are using the player pawn to ignore the player. You can use the trace by object using the method I talked about above.

Mathew Wadstein just did a bunch of WTF how to videos on collisions that are worth a look. Youtube Mathew Wadstein Unreal. I have to give kudos to this guy, keeping it up on these couple minute videos explaining basic use of blueprint functions.

more ▼

answered Mar 09 '19 at 05:30 AM

avatar image

146 2 2 4

(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