Open level character not moving ?

Hello

I’m having an issue with my project.

I’m making an RTS style game.

Whenever i open my level from my main menu (UI widget + Game Mode Menu) , my characters wont move anymore.

If i open the level itself, it would work and my characters are moving and responding to my actions

I’m using :

Character class (ai controller) and destination right click button

I tried few things :

  • Setting input mode game and UI in the begin play
  • I checked if my right click (via enhanced input action) is firing, and it is firing.
    Any help would be much welcome please :slight_smile:


if your character is controlled via an ai controller and uses any form of “move to” then make sure that the pawn has Auto Posses AI set “placed in world or spawned”

Also make sure you posses the pawn with the ai controller.

Thanks for your answer !

The settings are preset this way (see screenshots) , works just fine when i’m playing from the level itself.

When i’m launching my game from my main menu (another level) both the characters arent moving, one is possessed by me (player controller) and another possessed by an ai controller :frowning:

You can try overriding on OnPostLogin inside of the game mode. You can add the spawn and possesion logic there.

Check if your level doesn’t have an override set for your game mode, character or controller. These things can throw off the normal logic.

Okay i found it !

Holy moly it’s been a full week i’m stuck on it.

Whoever see this, i was having the same issue as this guy : AI Controllers dont start

And found this answer on reddit : https://www.reddit.com/r/unrealengine/comments/msds2s/ai_not_working_when_game_is_started_in_a/

"
Hey there,Try this :
Go to Edit → Project Settings →
Navigation Mesh →
Runtime Generation from Static to → Dynamic
You are welcome. :slight_smile:
"

thanks a lot