Spawning actor in a specific layer

madmasseymadmassey Member Posts: 55
edited November -1 in Working with GS (Mac)
Is there a good way to spawn a new object into a different layer than the object that spawned it? I have an actor that needs to appear on top of the UI layer, but the object that spawns it needs to be behind the UI layer.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You can spawn in front of actor or layer or back of actor or layer (if i remember right) but you can't spawn on a new layer.

    You could use an actor on the UI to spawn it...make a rule in the object behind the UI layer something like game.spawn = true then in one of the actors on top of the UI layer do if game.spawn = true spawn actor...

    Darren.
  • madmasseymadmassey Member Posts: 55
    Ah yeah man, I didn't even think about that lol. I made an actor in the UI layer called "Item Spawner" and it worked great, thanks!
Sign In or Register to comment.