npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Units not moving #108

Closed JaredP94 closed 4 years ago

JaredP94 commented 4 years ago

Hi @npruehs,

I've been following your work for some time and decided to take a stab at using your plugin (release branch). Big fan of the work you've been doing here :)

I've been working through your usage guide (specifically the units component) and upon reaching the order binding section for smart orders, I've noticed that units are not moving when given orders.

I've created a unit derived from RTSCharacter with all relevant components (Character Movement component added by default).

Please feel free to request any additional information if needed :)

Thanks!

JaredP94 commented 4 years ago

Hi @npruehs,

Just a quick update, I've managed to reproduce unit movement on a unit derived from the RTSPawn class. Still unable to reproduce movement for a unit derived from the RTSCharacter class.

npruehs commented 4 years ago

Hey @JaredP94 !

Thanks for the warm words :)

Just to be sure that we're on the same page:

  1. In the demo project, does movement work there?
  2. Have you generated the navigation mesh for your level, and verified it looks as expected?
  3. Is the log showing any warnings or errors?
JaredP94 commented 4 years ago

Hi @npruehs,

Sorry, I meant to update this issue earlier. I noticed the logs weren't outputting any "Ordered Actor" messages when issuing commands to the RTSCharacter unit. That led me to realise that it was being controlled by the incorrect AI Controller. After that, all worked as expected!

Hope you didn't spend much time looking into this in the interim :)

Keep up the great work!