# How to make flying spaceship enemy

**URL:** <https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401>\
**Category:** Blueprint\
**Tags:** ai-navigation, unreal-engine, question, Blueprint\
**Created:** [June 1, 2024, 3:32am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401 "2024-06-01T03:32:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike3d3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mike3d3d](https://forums.unrealengine.com/u/mike3d3d)\
**Post date:** [June 1, 2024, 3:32am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/1 "2024-06-01T03:32:07Z")

</div>

Hello everyone! I am trying to make a simple game where you fly around a 3D space and shoot at enemy spaceships. I’m not trying to do anything complicated with the A.I yet, all I want is for an enemy pawn to keep moving to different points around the 3D worldspace as if it was patrolling. I am having issues doing this because flying AI can’t use navmeshes, so how can I go about this? Should I just have an event that just gets a random point and interps the actor towards it off the event tick? Thank you

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [June 1, 2024, 4:31am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/2 "2024-06-01T04:31:04Z")

</div>

Probably the easiest is to add a projectile movement component and cut the gravity off. Then when they spawn they travel in a direction governed by that component.

I hate navmesh.

---

<div class="post-metadata">

**Author:** ![mike3d3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mike3d3d](https://forums.unrealengine.com/u/mike3d3d)\
**Post date:** [June 1, 2024, 8:12am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/3 "2024-06-01T08:12:16Z")

</div>

Would that work though if I want to add rotation as well?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 1, 2024, 8:21am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/4 "2024-06-01T08:21:10Z")

</div>

Projectiles can auto orient to velocity so you wouldn’t need to do much in regards to that. They also support `homing` so you can give a projectile a randomly generated target location to arrive to, if it gets close enough, generate another one.

* * *

A lot of stuff in games is more about what you can get away with rather than striving with realism.

---

<div class="post-metadata">

**Author:** ![mike3d3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mike3d3d](https://forums.unrealengine.com/u/mike3d3d)\
**Post date:** [June 1, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/5 "2024-06-01T15:40:25Z")

</div>

![9432779c54d9559bd58a7c9169018009](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/b/35bf4d56ea80fc73d1cdaa7c9b9d438489cbc213.png)  
I have something like this that kind of works but the movement is irratic and fast, I’m not sure how to have it move slower. I tried messing with the interp speed but it only seems to go faster. This is attached to my enemy BP

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 2, 2024, 11:52am UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/6 "2024-06-02T11:52:06Z")

</div>

That’s not what was discussed above. If you want to approach it with a manual interpolation method, though, perhaps an introductory tut would help first; the `vInterp` node is not set up correctly here. You’d generally run it off Tick and feed it delta time it spits out. You want as frequent step updates as possible.

---

<div class="post-metadata">

**Author:** ![Nightwolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nightwolf/32/917179_2.png) [@Nightwolf](https://forums.unrealengine.com/u/Nightwolf)\
**Post date:** [June 2, 2024, 12:38pm UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/7 "2024-06-02T12:38:09Z")

</div>

you could always play around with add impulse but this is certainly not the best way to do it

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [June 2, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/how-to-make-flying-spaceship-enemy/1883401/8 "2024-06-02T18:38:23Z")

</div>

Vinterp to propulsion method in the ShipScroller general movement theory thread [SHIPSCROLLER (Side) - General Movement Theory](https://forums.unrealengine.com/t/shipscroller-side-general-movement-theory/1525866)
