x

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"

NPC in open world

Hi, I'm working on a small open world RPG ("The Elder Scrolls" like) and I have some problem with NPC setup.

Like in most (all?) open world RPG, I want my NPCs to be visible and active while in player radius, then be invisible and "paused" while out of radius but I really don"t know what's the best way to achieve this. Plus I'm using world composition. Any help/ideas are welcome.

Product Version: UE 4.19
Tags:
more ▼

asked May 06 '18 at 12:46 AM in Using UE4

avatar image

Haoris
174 8 14 25

avatar image ThompsonN13 May 06 '18 at 02:57 AM

in theory they should be getting culled when they arent in the zone that you are in, but i dont know the specifics on how world composition handles characters in particular. you could also look into occlusion culling, theres some good info from Tim Hobson at the following Link.

Edit: im not sure the culling portion is still on that site sorry about that.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

They are loaded/unloaded with level streaming distance but that's not what i'm looking for. In almost every Open world RPG, NPCs fade in/out at a certain distance around the player. When they walk out of this distance, they fade out. When you follow them and you're close enough, they fade in and keep walking from the location they faded out.

more ▼

answered May 06 '18 at 12:26 PM

avatar image

Haoris
174 8 14 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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