How can I make a unit appear instantly and be built up under construction?
EDIT: Using a Spawn Unit Effect this is (You click an ability and poof it appears).
I've managed to semi get it working, a build bunker ability creates a bunker upon the caster. I can't get it to appear under construction and slowly be built up up over a few seconds?
Is your bunker spawned through a Create Unit effect, or of the Build variety?
If you are Creating a bunker, it will only create the fully built bunker. One idea I have is to create a Behavior or 2, depending how long you want this bunker's construction to last, or how many stages you want to show building.
Basically your Behavior(s) all disable all abilities for the bunker like load and whatnot.
Tell the bunker actor that while Behavior X is on the bunker, to play the animation "Work Start" or something... I've not looked at a bunker's animations so I cannot be 100% sure, but there's probably one for like "Work Start" "Work Stand" and "Work End" or something. You make your Behavior X last 3 seconds, when expires, apply Behavior Y. While Behavior Y is on bunker, tell the actor to play "Work Stand". When Behavior Y ends, apply Behavior Z which plays the "Work End" animation. Expiring of Behavior Z enables the bunker to load units as normal and shows a normal fully constructed bunker.
If you need any more help, feel free to ask here. Hopefully others can clarify what I mean during the day... I'm in the mood for some Black Ops then bed time for me.
.... Took me 3 seconds to look and see that indeed they are blank. That means it uses a secondary actor as the 'build animation'.
Nothing changes, same principle. Create Bunker with Behavior X on it, actor shows one of the blank build animations. When Behavior X on, show actor BunkerBuild. Setup your actor events accordingly. Read above, throw in the Bunker Build animation.
I was going to write out a whole tutorial, but I'm not very patient or good at them. I can do some moderate length tuts I guess, but anyways... I went ahead and made a map showcasing this. It took only 25 minutes, no testing to get this working right on the first shot. Use anything from this map that you want.
The bunker takes 10 seconds to "make" in total. During those 10 seconds you can technically click on the bunker, but you cannot enter it or anything.
How can I make a unit appear instantly and be built up under construction? EDIT: Using a Spawn Unit Effect this is (You click an ability and poof it appears).
I've managed to semi get it working, a build bunker ability creates a bunker upon the caster. I can't get it to appear under construction and slowly be built up up over a few seconds?
Thanks
Bump
@Fullachain: Go
Is your bunker spawned through a Create Unit effect, or of the Build variety?
If you are Creating a bunker, it will only create the fully built bunker. One idea I have is to create a Behavior or 2, depending how long you want this bunker's construction to last, or how many stages you want to show building.
Basically your Behavior(s) all disable all abilities for the bunker like load and whatnot.
Tell the bunker actor that while Behavior X is on the bunker, to play the animation "Work Start" or something... I've not looked at a bunker's animations so I cannot be 100% sure, but there's probably one for like "Work Start" "Work Stand" and "Work End" or something. You make your Behavior X last 3 seconds, when expires, apply Behavior Y. While Behavior Y is on bunker, tell the actor to play "Work Stand". When Behavior Y ends, apply Behavior Z which plays the "Work End" animation. Expiring of Behavior Z enables the bunker to load units as normal and shows a normal fully constructed bunker.
If you need any more help, feel free to ask here. Hopefully others can clarify what I mean during the day... I'm in the mood for some Black Ops then bed time for me.
Good Luck.
Yes sorry it's with a Create Unit Effect I updated main thread to clarify.
I checked every animation for the bunker model, all the Work animations appear to be blank? I don't think it can be done that way.
Any other ideas?
Bump
@Fullachain: Go
.... Took me 3 seconds to look and see that indeed they are blank. That means it uses a secondary actor as the 'build animation'.
Nothing changes, same principle. Create Bunker with Behavior X on it, actor shows one of the blank build animations. When Behavior X on, show actor BunkerBuild. Setup your actor events accordingly. Read above, throw in the Bunker Build animation.
Ok I sort of understand you, I'm a bit stuck with the actors part thou.
What type of actor should I be using? How I can tie in an actor together there. Having some difficulty sorry still learning.
I've been looking through the actors, there's quite a few Terran Builds in there, seems alot could be used.
I was going to write out a whole tutorial, but I'm not very patient or good at them. I can do some moderate length tuts I guess, but anyways... I went ahead and made a map showcasing this. It took only 25 minutes, no testing to get this working right on the first shot. Use anything from this map that you want.
The bunker takes 10 seconds to "make" in total. During those 10 seconds you can technically click on the bunker, but you cannot enter it or anything.
Thanks so much, it work's beautifully :)
The only little problem, if the bunker dies it leaves a wreckage for some strange reason?
@Fullachain: Go
Ahh sorry. When I went and took a look to see exactly when this wreckage was taking place I also saw a weird little glitch.
Find the SuperBunkerBuild actor, modify the Events + field, and change the last line from 'AnimClear BuildFinal' to 'Destroy'.
then, add
that gets rid of the wreckage and properly gets rid of the 'build' animation while the bunker is alive.