Stop Array Duplicating?

revilo14
Thu, 16 Apr 2020 20:51:52 +0000
UI

Hello, sorry if this posts twice, not sure if previous worked or not ://

I currently have 3 objects being randomly spawned into my game at different positions. These positions are decided by 5 target points around my map. (3 objects randomly spawn to these targets). Unfortunately sometimes an object spawns twice on these targets, meaning that the object in the array was chosen twice - or the random integer.

I need some way of making it so that the 3 objects spawn accross different targets and dont get selected twice.
When the round ends all the 3 spawned items are destroyed and 3 more at random get spawned in, just thought i would mention that in case that changes the blueprint in any way.
Im a real beginner at ue4, so a relatively easy to follow answer would be excellent.

Thanks in advance!!

8 posts - 1 participant