Skip to main content

NPC Examples

This page will explain how the npc spawn example work

We can test this part in the map example Map_ACC_InGameExample

Reference Viewer

The idea it's to have an Actor which will spawn a NPC Character from given identifier

You can open the BP_ACC_NPC_Spawner Blueprint :

Reference Viewer

Basically the blueprint :

  • get Creation Data from a DataTable
  • GetSpecieActorFromCreation it's an example about to show you how get the Blueprint Class to spawn (the Character Class)
  • spawn an Actor character
  • call SetNetCreation interface function for init data with network replication

Reference Viewer

Then we can place the Actor in the Level and change Specie Identifier

Reference Viewer

And when play

Reference Viewer