Spawing actors within a spawner spawing actors.

Hi! It's me again with another question.

The title sounds strange but the idea is pretty simple.
I have a working spawner spawing an actor every 0.3 sec (actor A). But once in a while (at random) I want something else (actor B) to spawn from that same spawner instead of the first actor (actor A).

The problem however is also i don't want them to overlap. I'm looking for something like this: A A A B A A A A B A B

Thanks in advance!

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2016

    Every 0.3 seconds
    --Change R to random(1,5)
    --If R = 5 then spawn Actor B
    --Otherwise spawn Actor A

  • evertevert Member Posts: 266
    edited December 2016

    @Socks said:
    Every 0.3 seconds
    --Change R to random(1,5)
    --If R = 5 then spawn Actor B
    --Otherwise spawn Actor A

    Maybe a silly question, but what is R?

    EDIT: think R is a real attribute? it seems to work if i make R a real attribute in self

Sign In or Register to comment.