Okay, the pugs spawn but they stop appearing after they pop up 5 times.
Because you need to do this:
The reason for this is that you are choosing the random locaction from the âFreeTargetsâ with the âGetâ node right? You then get the location of that chosen array element (which is a TargetPoint), and you also want to save this as the âOccupiedTargetâ, so later when the pug dies you can use this reference to remove that certain element from the âTakenTargetsâ array. This way, when the âSpawnPugsâ event is executed next time, that certain element will be no longer contained in the âTakenTargetsâ array, so it will be added to the âFreeTargetsâ array.
I hope you understand it more now.
It spawns at random however than stops and just focuses on one target point. It still doubles up in some areas. Hereâs a gif of it happening.
Hi
Now I am confused, did you get to to work properly or you still have problems?
Not it doesnât, it kept coming up with an error something to do with get coming from SpawnActor
Can you share that error please? Also post a screnshot of your Pug Actor (where the Timeline is) and check with a Print String if the âRemoveâ node was successfully removed the element (print out the bool that is returned from the âRemoveâ node. I would also suggest to decrease the spawner rate for now to be able to observe the behaviour of the pugs.