Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Pawn destroys itself after RTS-style camera moves too far away.

I'm working on an RTS game kind of like Warcraft 3, where each player has a hero unit along with their regular units. While testing the UI, we discovered an issue in that, when the camera moves far enough away from the hero, the clientside version of that hero is destroyed. Upon returning the camera to the hero's location, a new one is spawned with a different name.


Our debugging took the level blueprint, ran an event tick that got all actors of the hero's class, and printed their display names. Client 1 currently owns AI_KIMHero1.


After moving the camera away, the hero's model disappears and Client 1 no longer prints a display name. Presumably, UE4 is temporarily culling the pawn to improve performance.


Moving the camera back towards the pawn's position prior to it destroying itself, a new pawn called AI_KIMHero2 is now owned by Client 1.

Does anyone know what is causing this, and if it can be disabled, or a workaround? We know that the dedicated server's copy is not destroyed, but we're stuck on how we could use that to fix our issue.

Product Version: UE 4.9
bug1.png (1.3 MB)
bug2.png (1.1 MB)
bug3.png (1.1 MB)
more ▼

asked Jan 12 '16 at 06:15 PM in Everything Else

avatar image

8 1 2 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You probably need to increase the 'Net Cull Distance Square' value in the Replication category of your Actor's settings. It defaults to 225000000.0, which is 1.5km, depending on your world scale settings (sqrt of 225000000.0 is 15000.0).

(The value is specified as 'distance squared' instead of simply distance because it's computationally less expensive to use this number to calculate distance while the game is running.)

If your project is a C++ project, it's also possible to override this in other ways that avoids having to type in a ridiculously huge number, but I'm not sure about Blueprint.

more ▼

answered Jan 13 '16 at 12:24 AM

avatar image

2.4k 100 72 122

avatar image ASCrake Jan 13 '16 at 12:08 PM

Thanks mate, this worked immediately. For the record, it's a blueprint project.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question