Can timer use random number?
charochai
Member Posts: 4
Hello every one.
I created timer as random and the result is. The timer function didn't random.
Here how I created the timer.
1. Created attribute inside the Actor name "RandomNumber".
2. Then I use Constrain Attribute as [self.RandomNumber] to [random[1,6] ]
3. Use timer function from behavior.
4. In the Timer input box, I put the "self.RandomNumber". then spawn actor.
The result, This timer spawn actor all the same time.
Not thing change at all.
So, my question is.
Can I use random attribute for timer?
I created timer as random and the result is. The timer function didn't random.
Here how I created the timer.
1. Created attribute inside the Actor name "RandomNumber".
2. Then I use Constrain Attribute as [self.RandomNumber] to [random[1,6] ]
3. Use timer function from behavior.
4. In the Timer input box, I put the "self.RandomNumber". then spawn actor.
The result, This timer spawn actor all the same time.
Not thing change at all.
So, my question is.
Can I use random attribute for timer?
Comments
Put this in the time setting:
random(#,#)
The first number is the low value and the second the high value.
I wouldn't use a random number generation for an "every" timer though. You might get some funky results.
So in order to get a random timer, all I have to do is put "random(#,#)" in the input box of the timer behavior? I tried that and it always switches back to a simple, whole, number when I click away.