Let say I have some AI, patrolling emitting sounds, etc, now the player is in the other side of the map, there is no point on keeping that AI alive wasting hardware resources and I should just pause it, right?
My question is, can the engine handle this by itself, if so, how, and otherwise, what’s the best approach to deal with it?
In multiplayer, for clients, the actors are destroyed in their version of the world if they are not net relevant to the player. On the server, actors will keep going until you destroy them or destroy the world they are in (eg change maps). Singleplayer games are listen servers so the actor will not be automatically removed or paused when you are not nearby, as above.
This would be undesirable behaviour for some games though, so you’ll just have to do it yourself at moments appropriate for the game you are making.