vincou
(wolf21)
December 21, 2024, 2:22pm
1
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
3dRaven
(3dRaven)
December 21, 2024, 4:14pm
2
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.
vincou
(wolf21)
December 21, 2024, 5:28pm
3
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
3dRaven
(3dRaven)
December 21, 2024, 6:57pm
4
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.
vincou
(wolf21)
December 21, 2024, 7:23pm
5
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.
"
system
(system)
Closed
January 20, 2025, 7:25pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.