Author: Hayden Rodgers
Date: 09/08/2023
This week a difficult portion of the work that I did during the week was creating the spawning system for the AI. The main issue was having the spawner to be dynamic with its spawning locations and spawning at those dynamic locations. After working for a long time of trying to create a dynamic spawning location, I had come up with the idea of creating an array that holds all of the spawner locations that were created to be placed in the scene. At the start of the level the spawner will search for all spawner locations which was a blank actor with a sphere collider around it. This had allowed for easy access and visibility when placing them with in the world and accessing it by code. In order for the spawner to know where these locations are I created an array that references each spawner location within the scene. Once this data is acquired then the spawner would go through the list at random and choose a spawner to spawn the ai. To get the ai to spawn at the dynamic spawn locations I created a function that gets a RandomVector Locate within a 7.5 m radius around the spawner. For a visual I included this video