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"

Actor has tag always return false

alt text

Hi, I'm trying to make my enemy react differently when hit by different actors with tags . My problem is that all tags return false. I could solve it by casting to the class but I really want to be able to use tags since it will make it easier later in my project (and seems to be more efficient).

Just to be clear, I double-checked that I'm using Actor Tags and Not Component Tags. I have no clue of what I'm doing wrong since I'm seeing others do what seems to be the same but with working results.

Any suggestions are welcome!

alt text

Product Version: UE 4.9
tagproblem1.png (72.5 kB)
tagproblem2.png (43.1 kB)
more ▼

asked Nov 04 '15 at 02:28 PM in Blueprint Scripting

avatar image

1 1 2 3

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

2 answers: sort voted first


If you reading from "Other comp", you will get tags from "Tags" section of "Details" (Comonents Tags). You need use "Get Owner" to get "Actor" and use "Get Tags" to get tags from "Actor" section of "Details".

alt text

tag.png (947.3 kB)
more ▼

answered Nov 04 '15 at 03:20 PM

avatar image

8.5k 255 43 400

avatar image ssp07a12 Nov 04 '15 at 06:21 PM

Hi svv3dUDN.

Getting the same results. It will only return false.

Not that I think it matters, but I see you've chosen to set this up in your projectile while mine is in the enemy pawn.

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

Hey, did you ever sort this out? I'm having the same problem. Definitely using Actor Tags, but still getting only False. It's also an actor pawn.

more ▼

answered Apr 28 '16 at 05:20 PM

avatar image

11 1 3

avatar image Doug E ♦♦ STAFF Apr 28 '16 at 05:33 PM

Hey Allena.Hail-

Can you show how you're setting up and using the Actor Has Tag node? I was able to create add a tag to an actor and in that actor blueprint use the Actor Has Tag node which printed the "true" portion of my branch node.

avatar image Allena.Hail Apr 28 '16 at 06:08 PM

Hey! Thanks Doug for getting back to me. Buuut, I actually figured it out by just throwing nodes around, haha. I needed the "Get Controlled Pawn" node. Even though it wasn't giving an error with the "Actor Has Tag" target as "self". Thats what eventually did it.

alt text

alt text

(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