Setting up the PCG crowd blueprint
In this section, we will set up an actor blueprint, which will spread the number of AI_Player characters within the radius of the spline controller. It will be a very easy setup and it won’t take too long!
Now, let’s dive into the step-by-step implementation:
- Inside the
Blueprint
folder, create an Actor blueprint and call itBP_PCGCrowd
.

Figure 9.39 – Create a new Actor blueprint and rename it to BP_PCGCrowd
- Let’s open your new actor blueprint and, on the VARIABLES tab, add a float variable and call it
SpawningDistance
. This will control the distance between the distribution of newly spawned AI_Player actors. Be sure to always makethe variables public.

Figure 9.40 – Add a new float variable and rename it to SpawningDistance
- With the SpawningDistance variable selected, in the Details panel on the right-hand side, add the Slider...