# Homeworld style rts control

**URL:** <https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 30, 2023, 11:53pm UTC](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390 "2023-10-30T23:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [November 3, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390/10 "2023-11-03T18:59:20Z")

</div>

Unlikely.

There are caveats and special cases that need handling, ofc. The above is NOT a complete system. Like going over the horizon - running out of the horizontal plane to trace against:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/6/996d68f7fdeaab0b1899f2afd52229eb8ac0326b.jpeg)

You can’t hit the green mark using the horizontal tracing… You may want to switch to another far away vertical plane to trace against - that’s why those functions spit out booleans. Print them to see which one fails. And handle the fail in some way. What is supposed to happen if we select a nav point outside of the playing field?

Besides, the above is set to 25000uus - 250 meters. Wiggling the mouse like that may simply take the whole thing too far. Up it a bit, print values.

If you want to continue with this (duh, ofc, we’re just starting), do ensure you wrap you mind around [what this script is doing](https://forums.unrealengine.com/t/ue5-getting-character-to-follow-mouse-cursor/1359684/2). It’s a really versatile set of nodes with countless application. Draw more debug to figure out what is what.

3d flying navigation is no joke. 😑

---

_[View the full topic](https://forums.unrealengine.com/t/homeworld-style-rts-control/1353390)._
