Boss spawn
SajadKazal
Member Posts: 20
Hey
So i want a boss to spawn after 20 seconds - thats easy enough
but i want same boss to spawn after 40 sec but this time 2x of this boss, but after first time i destroy the boss, i can't make him respawn, do i have to make a whole new actor or can i use the same actor and make it spawn multiple times after it's been slain?
Comments
Hey @SajadKazal,
Attached is a quick project I threw together for you to accomplish what you are wanting to do. I just have it spawning in 1 boss at 5 sec then 2 of the same boss at 10 sec.
Hope that helps!
Hello KillerPenguinStudios - i looked at what you made for me (thanks, appreciated) but it doesn't seem to work when i put the attributes into my game, it will only spawn 1 actor and when that actor dies it won't spawn any more bosses after that
@SajadKazal,
Just want to let you know when you want to put a members name in a post, use the @ symbol first then their username so they get the message that you are referencing them.
Not really sure what to tell you. Without knowing how your project is set up and how you have it "coded" no one will be able to help you out. It's not working on your end because you don't have things coded properly.
@KillerPenguinStudios - so this is my spawner http://imgur.com/iBunyze
Could it be because the boss HP isn't resetting after dying first time?
I would say that this would be the problem. It's because you are telling it that when boss HP = 0 to destroy the actor and since it is never reset it is always 0 so when it spawns the next set of bosses it automatically destroys them.
@KillerPenguinStudios - yeah thats what i thought, but since there's no reset actor behaviour i can't seem to do anything about the problem, do you have an answer to this minor problem?
@SajadKazal,
I am not sure how your whole project works or is set up but off the top of my head I would have the boss HP as an attribute in the boss actor itself and not as a game attribute.
@KillerPenguinStudios it worked, everything is perfect now. thank you ver much!
Glad it worked for you and HaPpY to help!!!