Turning on spawners randomly

Hey all, a quick question.
I am trying to turn on some spawners, but I dont want them all to turn on. I just want to turn on a random number of them.
Unfortunately only 1 turns on, even though the random amount is working. What am I missing here?

What am I missing here?

You’re only turning 1 according to the script above - you Get a single element, then turn it into an array, but that’s still just 1 element.

Try it like so:

Indeed only one was being spawned!
Thank you I will give this a try now

1 Like

Gave it a try, and its producing some strange results, the number that is output is not the same as spawning, also everything spawns in the centre spawn location but not at the others. I am confused why this might be


1 Like

Sorry, was setting the spawn box location to relative transform instead of world transform. All works now!
Thank you

1 Like

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