# Homing enemy projectiles

**URL:** <https://forums.unrealengine.com/t/homing-enemy-projectiles/346773>\
**Category:** Community & Industry Discussion\
**Tags:** homing, unreal-engine, enemy, question\
**Created:** [February 8, 2016, 11:50am UTC](https://forums.unrealengine.com/t/homing-enemy-projectiles/346773 "2016-02-08T11:50:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Master.Oogway](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master.Oogway](https://forums.unrealengine.com/u/Master.Oogway)\
**Post date:** [February 8, 2016, 11:50am UTC](https://forums.unrealengine.com/t/homing-enemy-projectiles/346773/1 "2016-02-08T11:50:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lion032](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lion032](https://forums.unrealengine.com/u/lion032)\
**Post date:** [February 11, 2016, 1:41pm UTC](https://forums.unrealengine.com/t/homing-enemy-projectiles/346773/2 "2016-02-11T13:41:33Z")

</div>

When creating your projectile class add ProjectileMovementComponent and set the following:

```
bIsHomingProjectile = true;
bRotationFollowsVelocity = true;
HomingTargetComponent = PtrToYourRootComponent;
```

---

<div class="post-metadata">

**Author:** ![lion032](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lion032](https://forums.unrealengine.com/u/lion032)\
**Post date:** [February 11, 2016, 1:54pm UTC](https://forums.unrealengine.com/t/homing-enemy-projectiles/346773/3 "2016-02-11T13:54:28Z")

</div>

Select the projectile component in the editor and look for bIsHomingProjectile under Homing category, bRotationFollowsVelocity under Projectile category and tick them.
