Automatically delete actor

Any idea why I have these kind of glitch?

It’s not glitch, when you remove actor it is only marked to be deleted and it exist in memory until it gets cleaned by UObject management system and actor list still list it just to inform you it is still in memory, just in case of memory leak.

“(Deleted Actor)” should not concern you as by that point is already put side from world workings with IsPendingKill() returning true, engine will avoid interaction with it and your code should too check IsPendingKill() if actor is about to effect the world (other actors that are alive).

I understand that, but I’m talking about something else. I thought at the beginning that issue is in my side, but it’s not.
Can try even with fresh TPS Tempalte. Run game with 2 players (Dosn’t metter 2 clients or Client and Server).
Then run with one of the players far away, so it gets good distance between them, after a wile it will delete Client 2 or Server character.

It gives me an issue, because once it start to delete Client 2 from World Outliner, its basically impossible to play with it, because it constantly delete and respawn it in World outliner. When it delete character, character stops and can move again, when it gets spawned again. And it just goes in a loops every few sec.

Oh you mean that, then maybe you got lifespan variable set on your actor, if not there something killing you actor in your code.

I actually found out. It’s how it should be. Engine does that to save some hardware power, so game don’t replicate things what are far away and you can’t see them anyway.

So can you say how to fix this… i don’t want delete my actor even it was far away… So how to do that?

You might have set “initial life span” value. You can find it in the actor’s Class Defaults. It is under “Actor”. Simply search “initial life span” in your actor’s class defaults.
The “initial life span” is zero by default. Keeping it at zero will not delete the actor unless you write a code to delete it