my wheeled vehicle will not move when it is out of view/ not rendered

Hi, I have wheeled vehicle pawn with Vehicle Movement Component in the level. Everything works fine while I am looking at the vehicle but when I turn around and the vehicle is not visible to main camera it doesn’t move. This vehicle is auto possessed by AI on spawn, and it is controlled by default AIController.

Hey @StefanJakubjak!

A few questions to start things off:

  • Is your default gamemode your vehicle gamemode?
  • Do you have a player start in the level?
  • Do you mind sharing some screenshots of the issues you are facing?

Any additional specifics you can provide will go a long way in solving your problem!

@Quetzalcodename
Game mode is set to GameModeBase. I don’t have player start. There won’t be any players in the level. We just want to use it as a background instead of green screen. I can’t share any photos. Event tick is working normally on the vehicle. I would say there is something wrong either with AI or physics which is not recomputed when it is out of view but I can’t find the setting or issue.

Hey @StefanJakubjak!

It’s still really hard to tell without any context. Could you provide anything that could demonstrate your issue? Maybe some dummy assets or just the blueprints themselves? It sounds like the issue is with your AI, but there is no way of knowing at the moment.

Hey there @StefanJakubjak! Welcome back to the community! I was strolling by and thought it could be one of two things, and you mentioned them both already. The vehicles have a bool for if they aren’t being rendered they may not operate. In this case for the VehicleMovementComponent it’s this bool:
image

To check if it’s the AI controller, the Blackboard, or the Actor itself, have some print behind it’s detection logic to see if it still works when you’re away. If the level has world partition and streaming enabled, disabled streaming for a sec and verify if it’s working on another streaming proxy or not.

1 Like