Stop Spawn if Actor Already Spawned in Postion [Solved]

theabbott

  • Posts: 271
As per title, Should be useful if others run into the same issue:

I have a series of actors that are spawned randomly in multiple fixed positions. I was having a problem with what to do when the code had already spawned an Actor in the same position. After a while I solved it thus: *Make a Game Attribute List (Already Spawned?)
                    *Store Position Attribute in "Already Spawned?" list if not already stored
                    *Spawn Actor as normal
                    * If Position Attribute is already in "Already Spawned?" Game attribute then stop