Random Behaviour
Forte
Member, PRO Posts: 297
Hello,
I may have asked this question before, but I have failed to locate it in the forums.
How do i make the actor chose between two things?
So it could be a random choice.
The reason is that i am trying to make a machine gun, and i want it to spray and not go in one direction.
Cheers, Dragokillz
I may have asked this question before, but I have failed to locate it in the forums.
How do i make the actor chose between two things?
So it could be a random choice.
The reason is that i am trying to make a machine gun, and i want it to spray and not go in one direction.
Cheers, Dragokillz
Comments
Then have a Change Attribute like this:
myRandomDirection = random(0,1)
Then two rules:
When myRandomDirection = 0
Do something
When myRandomDirection = 1
Do something