Any NPCs · Documentation

Getting Started

Open the demo level, add NPCs to your own city, watch what each one is doing and size the crowd. It all happens in the Content Browser and the Details panel, with no code. You need Unreal Engine 5.8 on Windows.

← All Any NPCs documentation

1 · What you need

Before you start

Any NPCs adds people to the road networks Any City Generator builds. Check these first:

▾ Requirements

Plugins Any NPCs, plus Any City Generator, Any Weather and Any Car Engine, which it is built on. All four must be installed; enabling Any NPCs enables the other three
A city At least one Any City road network (BP_AnyRoadNetwork) in the level. For cars, an Any City traffic manager too
Third Person content The mannequin meshes and animations under /Game/Characters/Mannequins, used by the ready NPC types
Combat variant (optional) /Game/Variant_Combat/Anims/AM_ComboAttack, the ready types' attack montage. Without it, fighting NPCs strike without an animation

No Third Person content yet? In the Content Browser, click Add > Add Feature or Content Pack, choose Third Person and add it to the project.

No mannequin, no bodies. Without the Third Person content the ready NPC types have empty mesh slots: NPCs still walk, cross and block cars, but you can't see them. NPC types with your own meshes and your own Animation Blueprint don't need it.

2 · Try the demo

Open the demo level

Any NPCs ships AnyNPCDemo, a generated city with everything set up. Find it in the Content Browser under Plugins > Any NPC (turn on Settings > Show Plugin Content). It contains:

▾ AnyNPCDemo

AnyNpcManager BP_AnyNpcManager with both NPC types and the Weather and Engine Noise sources
AnyTrafficManager Any City traffic driving the generated city
AnyWeatherSystem Any Weather cycling through the demo climate, rain and snow included, from 16:00 with 30-minute days
Bus stop A roof on two posts over an Any Weather shelter volume, where NPCs wait out the rain
PlayerStart On a sidewalk next to a crosswalk

Press Play. People appear on the sidewalks around you, out of view, and walk, pause, wait at the curb and cross in front of the stopped cars. When the weather turns they hurry or head for the bus stop, and as the evening comes the crowd thins out.

3 · Your own level

Add NPCs to your city

In any level with an Any City road network:

  1. In the Content Browser, open Plugins > Any NPC > Blueprints and drag BP_AnyNpcManager into the level. Where you put it doesn't matter while a player is in the world.
  2. With the manager selected, in the Details panel find Environment Sources, click + twice and pick Weather (Any Weather) and Engine Noise (Any Car Engine) in the two entries. Both are optional.
  3. For cars, the level needs a traffic manager: in the Any City Generator tab, click Spawn Traffic Manager.
  4. Press Play.

Sources go on the placed manager. BP_AnyNpcManager has no environment sources of its own, so add them on each manager you place. Without them, NPCs ignore the weather and engines and the crowd stays at full size day and night.

More about walking and crossings →

4 · Watch it work

See what every NPC is doing

Two switches on the manager draw the system while you play:

▾ AnyNpcManager > Debug

Draw Walk Graph The walking lines near the player: sidewalks green, corners cyan, crosswalks white, unmarked crossings yellow
Draw Debug Every NPC near the player, colored by what it is doing
Debug Draw Radius How far around the player to draw. Default 60 m

Walking lines are built when play starts, so nothing shows in the editor viewport until you press Play.

5 · Size the crowd

How many, and how close

The settings you'll touch first, on the manager:

▾ AnyNpcManager > Spawning and Actors

Npc Types The types that spawn, picked by their Spawn Weight
Max Npcs Most NPCs alive at once at full density. Default 150
Spawn Radius / Despawn Radius Sidewalks within 120 m of the player get NPCs; NPCs beyond 150 m are removed
Min Spawn Distance From Viewer NPCs never appear within 35 m of the player, nor in view nearby, except when the street first fills
Max Npc Actors Only the nearest 60 NPCs, within 70 m, become characters. The rest keep walking as data
More about events, the crowd and performance →

That's the basics. Next, see how NPCs read your roads, when they cross and how the cars stop for them.