I'm trying to create a new building that uses the toss building warpin animations, but I can't for the life of me find the right one. The animations that are referenced by the existing units (such as "Pylon Birth", etc.) are completely blank when played in the previewer, and yet somehow show up in the game - but only for the default units, not for any custom ones. For the time being I'm using "Protoss Unit Birth" as a placeholder animation.
My head is a total question mark on this aswell, someone told me the magic happens in actor events, but nothing specific. I hope someone will bring some light on this for you, aswell for me :)
I've actually gotten this figured out and working since my OP, I'll do a tutorial on it soon. (Sorry no quick answer because it's pretty complicated.)
The basic gist of it, however, is that you need to use a *separate* actor. I forget the actor name exactly.... Go to the unit "Pylon" and see what other actors are associated to it. I believe you'll find something like "Protoss Small Construction Birth" or something of that nature. If you look at this actor's events you should see that it makes references to things like pylon, photon cannon, etc. I think there's a "Protoss Large Construction Birth" that does things like stargates etc too. One of the things to make it work is to duplicate those events for *your* unit. Essentially the events are looking for a time when certain protoss buildings begin construction - When they do, the actor is 'created' until the construction is complete.
That should start you out on it, but I remember having to do a few other things too so you might need to play around with it. Hopefully this is a good starting point though.
I'm trying to create a new building that uses the toss building warpin animations, but I can't for the life of me find the right one. The animations that are referenced by the existing units (such as "Pylon Birth", etc.) are completely blank when played in the previewer, and yet somehow show up in the game - but only for the default units, not for any custom ones. For the time being I'm using "Protoss Unit Birth" as a placeholder animation.
Has anyone gotten this to work?
My head is a total question mark on this aswell, someone told me the magic happens in actor events, but nothing specific. I hope someone will bring some light on this for you, aswell for me :)
I want to know this too. A solution would be nice.
I've actually gotten this figured out and working since my OP, I'll do a tutorial on it soon. (Sorry no quick answer because it's pretty complicated.)
I belive you just need to look at the actors ProtosBuildingBirth<small/nothing/large>. In the events, add UnitConstruction.<your unit>.Start - Create
The basic gist of it, however, is that you need to use a *separate* actor. I forget the actor name exactly.... Go to the unit "Pylon" and see what other actors are associated to it. I believe you'll find something like "Protoss Small Construction Birth" or something of that nature. If you look at this actor's events you should see that it makes references to things like pylon, photon cannon, etc. I think there's a "Protoss Large Construction Birth" that does things like stargates etc too. One of the things to make it work is to duplicate those events for *your* unit. Essentially the events are looking for a time when certain protoss buildings begin construction - When they do, the actor is 'created' until the construction is complete.
That should start you out on it, but I remember having to do a few other things too so you might need to play around with it. Hopefully this is a good starting point though.
Wow, actually it was pretty simple :P Thanks for the hint, nZifnab!