Spawn actor after one actor gets destroyed?

So when the user shoots a bubble with the cannon i have a machine gun activate for 15 seconds, after 15 seconds the machine gun gets destroyed (Using a timer). Essentially the machine gun is a special power up. But after the machine gun gets destroyed i want to spawn back the cannon back to its original position. Anyone know how i can do this?

Comments

  • izzydoghamizzydogham Member Posts: 24
    OK GUYS I DID IT LOL THANK YOU !
  • BonepileGamesBonepileGames Member Posts: 194
    I would recommend you easier way to do that rather than spawning multiple actors.

    I'd create a game attribute called "machinegun" set to 0. When something happens (your case) change machinegun to 1. Make the regular cannon to change its image when the machinegun attribute is 1 and make the special bullets spawn from this actor when again this attrbiute is 1. If game.machinegun = 1 > timer after 15 seconds change it back to 0.

Sign In or Register to comment.