Randomly select 2 different numbers?
MonjiO
Member Posts: 20
So I know that the supported randomization feature chooses any value between two extremes, but is there a way to randomly select two different values?
So, for example, say I have an actor who, when it hits a trigger, moves up and down. But, I want it to randomly "decide" which direction to move in (the values 90 and 270 are what I'm using for changing direction). Can I set up something to choose between those two numbers? If so, how?
So, for example, say I have an actor who, when it hits a trigger, moves up and down. But, I want it to randomly "decide" which direction to move in (the values 90 and 270 are what I'm using for changing direction). Can I set up something to choose between those two numbers? If so, how?
Comments
Create a change attribute behavior: "direction" to "random(0,1)".
Then create a rule that checks "direction" if "1" go up otherwise go down.
Also most cool user name.