I'm making a cinematic base defense (bet that's original, huh? ;D) and I want 10 nydus worms to spawn outside the base and produce zerglings. Then I'll have 5 more nydus worms spawn inside the base.
My first problem was with spawning the nydus worms. I set them to spawn at certain regions, and they do. But they just appear instantly, they don't make the cracked ground and then come flying out like I want. So I tried setting them to spawn as "under construction" and that made the cracked ground. But they stayed in construction and never finished. So how do I make them do the normal animation?
Edit: Zarakk helped me with this, now I just need help with the zergling spawning
Then my next question would be how to set the worms up to continuously spawn zerlings.
Perhaps you can save the worms into a variable after creation and then when they spawn, have each variable play the animation which matches the 'spitting' out units (I am not exactly sure what is is called atm, I'm sure you can find it) while at the same time spawning a zergling at those nydus worms? That might work the way you want to. Should only involve the same triggers as the spawning of the nydus worm except that after 'create nydus worm' you must make a 'set variable blahblah = last created unit' so that your game can know which nydus worm should play its 'spitting units out' animation. Or if they all spawn it at the same time you can just create 1 variable unit group and add each worm to that unit group when you make them spawn and then pick each unit from unit group then animation - play etc. If you understand what I'm saying. Hope it helps you.
Opened one of Blizzard's campaign levels where they spawn Nydus Worms, this is how they do:
Unit - Create 1 Nydus Worm
Variable - Set "Unit" = Last Created Unit
Animation - Play Birth for (Actor for (last created unit))
Sound - Play Nydus Worm Birth
Wait 3.7 seconds
If Then Else -
- If "Unit" is alive = false
Then - Nothing
Else -
Sound - Play Nydus_Worm_Unload
Animation - Play Spell animation for (Actor for ("Unit")
Unit - Create 1 Zerg at position of "Unit"
Unit - Order last created unit to attack point
Hope you could understand that.
I'm making a cinematic base defense (bet that's original, huh? ;D) and I want 10 nydus worms to spawn outside the base and produce zerglings. Then I'll have 5 more nydus worms spawn inside the base.
My first problem was with spawning the nydus worms. I set them to spawn at certain regions, and they do. But they just appear instantly, they don't make the cracked ground and then come flying out like I want. So I tried setting them to spawn as "under construction" and that made the cracked ground. But they stayed in construction and never finished. So how do I make them do the normal animation?Edit: Zarakk helped me with this, now I just need help with the zergling spawning
Then my next question would be how to set the worms up to continuously spawn zerlings.
Thank you, in advance
@Zarakk: Go
Some specification on how to do that would be awesome
@Zarakk: Go
Great, I got that working now
Now, could you help me out getting the zerglings to spawn?
Perhaps you can save the worms into a variable after creation and then when they spawn, have each variable play the animation which matches the 'spitting' out units (I am not exactly sure what is is called atm, I'm sure you can find it) while at the same time spawning a zergling at those nydus worms? That might work the way you want to. Should only involve the same triggers as the spawning of the nydus worm except that after 'create nydus worm' you must make a 'set variable blahblah = last created unit' so that your game can know which nydus worm should play its 'spitting units out' animation. Or if they all spawn it at the same time you can just create 1 variable unit group and add each worm to that unit group when you make them spawn and then pick each unit from unit group then animation - play etc. If you understand what I'm saying. Hope it helps you.
Thanks for the help guys