Chapter 5
129
- Our final step is to connect all of the nodes appropriately. In total, it should look
like this:
Level Loaded | Loaded and Visible is connected to Actor Factory | Spawn Actor
PathNode is connected to Actor Factory | Spawn Point
??? is connected to Actor Factory | Spawned
Death | Out is connected to Actor Factory | Spawn Actor
Death | Instigator is connected to ???
Attach To Event | Event is connected to Death
Actor Factory | Finished is connected to Attach To Event | In
??? is connected to Attach To Event | Attachee
- Rebuild the map, and press PIE or Play | In Editor to play in the editor. You should
now see another pawn on the map! Shoot it a bit to destroy it, and watch as it spawns
back to life at the same node.
Be sure to change View | World Properties | Game Type so that it
uses our TutorialGame.
Perform these same tasks in your map using NavMashes as well,
otherwise your new AI pawn won't spawn.