All I see is videos of people making homing bullets for their gun, and tutorials telling me that. but I some enemy projectiles to chase the player I am controlling. also to rotate to the direction of the player. please someone help me, like a staff or something, I asked this question already but only a guy answered telling me to watch a video which doesn’t help, because he’s projectiles are from his guns.
When creating your projectile class add ProjectileMovementComponent and set the following:
bIsHomingProjectile = true; bRotationFollowsVelocity = true; HomingTargetComponent = PtrToYourRootComponent;
Select the projectile component in the editor and look for bIsHomingProjectile under Homing category, bRotationFollowsVelocity under Projectile category and tick them.