Skip to content

Spawning Enemies, Fodders And NPC's At Custom Levels

Arman Haçikoğlu edited this page Apr 16, 2020 · 2 revisions

This tutorial assumes you already know how to use plugin system, make levels and basic usage of blueprint system.

Creating A Dummy Enemy Blueprint:

Create a plugin for the enemy you want to spawn. In my example i’m going to spawn CES1016_Shepherd. You can use UE Viewer aka UModel to locate your folder and blueprint names.

Replicate the folder structure on your Unreal project by creating a new plugin and Blueprints folder inside the newly created plugin Inside your Blueprints folder create a Actor Blueprint Class. Name it the blueprint name you saw on Umodel

Creating Spawner:

Now go to your Content folder and create a new Actor Blueprint Class. Name it whatever you want. Double click on it to open BP editor and copy the blueprint setup from the image below.

For Pawn Class select the dummy Actor blueprint you created in my case it’s BP_CES1016_Shepherd. Use GetActorLocation** for location and GetActorRotation for rotation.

Compile and Save the blueprint

Spawning Your Enemy:

Place a Nav Mesh Bounds Volume to your level and scale it accordingly so it covers your map. Place the spawner blueprint you created to anywhere you want.

Build the map and Cook Content For Windows