random array and remove from array

i am trying to set up an array of positions. on these positions random object should spawn. after aobject spawned on one of these positions, the posiiton should be removed from the array, so that no other object spawns on the same position. how can i achieve this?

this is what i got so far, but the objects keep spawning on the same position…-


1 Like

Pure nodes - here Random - are evaluated every time they’re accessed. You access it twice here:

image

You use location data from one element but remove another.


Try it like this instead:

1 Like

thanks, very helpful

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.