How To Tag Player/Enemy/Bullet

I am curious if someone could share how would I tag my player with “Hero” so I can have only specific collisions happen for actors with the tag “Hero”

The same goes for Enemy and Bullet, Powerup etc.
The reason being, I notice I can shoot power ups, and only wish to destroy power ups if hero walks into them using the EventOnHit.

Any help would be appreciated, thanks.

P.S. I apologize if Tag is wrong terminology or should I be using Layers.

You can try to use the ClassIsChildOf function to solve your problem. Look at this other question for further references.

Please check out the different collision channels. You can also define new collision channels. For the Hero which I assume is a Pawn there you should use the Pawn channel.

Howdy,

If you wanted, you can use tags as seen below:

On your “player” character, search in the Defaults for Tag and apply the “player” tag.

Any time an overlap occurs on the trigger box example above, it checks for the tag I’ve assigned which is only applied to the player. This should accomplish what you are after.

Hope this helps!

-W

Fantastic!!! Thank you kind folks for giving me some insight.
This answered exactly what I needed.

Exactly what I was looking for. Thanks!

Awesome, thanks Wes!