Spawning actor on different layer?

Hello all,

Is there anyway to spawn an actor on a different layer than the actor that spawned it? If so, how?

Thanks!

-Peter

Comments

  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    Nope, there isn't. I was wondering the same thing about 3 weeks ago, so I posted my question here and the answer was, no. You can't. Sorry. :(
  • Peter_JPeter_J Member Posts: 17
    Hmm, interesting.Thanks for the info Utveckla! Is it possible to spawn an actor that has its own "scrollable" or "non scrollable" settings?

    Thanks,

    Peter.

  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    @Peter_J I'm not sure... Hmm... Maybe @Braydon_SFX can answer that one. :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You could just trigger an actor on another layer. You could have spawn managers built into every layer and just use integers to trigger the spawn.
  • Peter_JPeter_J Member Posts: 17
    Interesting concept, @FryingBaconStudios. Care to elaborate on it?

    Thanks!

    -Peter
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Sure. Let's say you have a bunch of actors. Three bad guys and you want to spawn them on different layers. So we would make three spawn managers and place each on three different layers. We make a game level integer called spawn.call and we assign each of the baddies 3 numbers. So baddie 1 would be 1,4,7 and baddie 2 would be 2,5,8 and baddie 3 would be 3,6,9 the code would look like this.

    Manager 1
    Rule
    When game.spwan.call = 1

    Spawn baddie 1

    Rule

    When game.spawn.call = 2

    Spawn baddie 2

    Rule

    When game.spawn.call = 3

    Spawn baddie 3


    Manager 2
    Rule
    When game.spwan.call = 4

    Spawn baddie 1

    Rule

    When game.spawn.call = 5

    Spawn baddie 2

    Rule

    When game.spawn.call = 6

    Spawn baddie 3


    Manager 3
    Rule
    When game.spwan.call = 3

    Spawn baddie 1

    Rule

    When game.spawn.call = 6

    Spawn baddie 2

    Rule

    When game.spawn.call = 9

    Spawn baddie 3

    See it's just straight logic just call the number you want to spawn a baddie on the layer you want.

Sign In or Register to comment.