random of 5 gives only 2
Hunnenkoenig
Member Posts: 1,173
I want to spawn a random actor from a set of 5 and I set an attribute integer random function "random(1,2,3,4,5)"
When I start the scene in GS, only the first 2 actors get drawn out of the 5.
I get those 2 actors rotational by every new start. That means:
Start 1 = actor 1
Start 2 = actor 2
Start 3 = actor 1
Start 4 = actor 2
etc.
What do I do wrong?
Is random fuction limited to 2 variables only?
When I start the scene in GS, only the first 2 actors get drawn out of the 5.
I get those 2 actors rotational by every new start. That means:
Start 1 = actor 1
Start 2 = actor 2
Start 3 = actor 1
Start 4 = actor 2
etc.
What do I do wrong?
Is random fuction limited to 2 variables only?
Comments
so in your case, you'll use random(1,5)
My bad.
Thanks for clarifying :-)