Random Spawnings?

BackUpAndDownBackUpAndDown Member Posts: 685
edited November -1 in Working with GS (Mac)
Hey, I have two guns that act as spawning points and I want it's shooting pattering to be random.

There will be three patterns that I want it to randomly cycle through.
1. Both guns fire
2. Just the left one fires
3. Just the right one fires

I need some ideas on how to achieve this.

Comments

  • ValanValan Member, BASIC Posts: 410
    Choose a random number from 1 to 3 using Change Attribute. Attribute maybe rdm#

    Have 3 Rules for each result of rdm#
    When rdm# = 1 then ...

    When rdm# = 2 then ...

    When rdm# = 3 then ...

    Hope this helps
  • BackUpAndDownBackUpAndDown Member Posts: 685
    I tried something like that but it would mess up if a number was drawn twice in a row. Maybe I just need to play around with it a bit more.
Sign In or Register to comment.