Are Pawns Set To Attract Projectiles?

Hello all!

So, when my archer shoots an inanimate object, the arrow has a “pure” flight path, but when I shoot at a pawn, it targets it. Is there a preset that forces this change in vector flightpath? (I’m using projectile movement component, by the way).

I love it, but I wonder how to set this attribute to regular meshes.

Hey @Leomerya12!

So it definitely has something to do with your ray trace there. Notice how you get a blocking hit on the pawn? It’s getting center screen with the cast, and IF the ray trace hits a pawn, it shoots the arrow towards the “Out Hit”. So to be able to do that with other things, you add those other collisions.

I would suggest making custom collision channels for this! It’ll be under Project Settings> Collision! :slight_smile:

2 Likes

So, basically, my suspicion was correct. Great. I thought I was losing my mind (which is a common occurrence with programming.)

I will check out those settings, and get back to you if I have any questions, if that’s okay.

Thank you!

1 Like

Hey again @Leomerya12!

Absolutely! We’ll be here! Anything you need just let us know. :slight_smile:

1 Like