I've tried everything I can think of for this and still can't get it to work, hopefully somebody can come up with a solution.
I've got a custom unit that can create a group of units or a building using two separate abilities, one train and one build. I want the unit to destroy itself after creating the new unit. The train ability has a flag "Kill on Complete" which destroys the unit correctly. The build ability also has "Worker Kill on complete" but it doesn't seem to do anything.
I checked out the zerg drone to see how it works but I couldn't find anything special. I even tried duplicating the drone and just changing the buildings it created but when it creates my buildings it just sits there afterwards.
I tried creating an event that triggers when the ability it used but the best I could do is get the command card to blank out.
Anyone have any suggestions? I know I could do it with a create unit/destroy unit set of effects but I'd rather not have to do that for every building I want to create.
Looks like I found my problem. In order for "Kill on Complete" to work with the build command the structure being built must have the "Build in Progress" ability. I don't know why but once I added that ability to my buildings the worker disappeared as expected when building.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've tried everything I can think of for this and still can't get it to work, hopefully somebody can come up with a solution.
I've got a custom unit that can create a group of units or a building using two separate abilities, one train and one build. I want the unit to destroy itself after creating the new unit. The train ability has a flag "Kill on Complete" which destroys the unit correctly. The build ability also has "Worker Kill on complete" but it doesn't seem to do anything.
I checked out the zerg drone to see how it works but I couldn't find anything special. I even tried duplicating the drone and just changing the buildings it created but when it creates my buildings it just sits there afterwards.
I tried creating an event that triggers when the ability it used but the best I could do is get the command card to blank out.
Anyone have any suggestions? I know I could do it with a create unit/destroy unit set of effects but I'd rather not have to do that for every building I want to create.
Looks like I found my problem. In order for "Kill on Complete" to work with the build command the structure being built must have the "Build in Progress" ability. I don't know why but once I added that ability to my buildings the worker disappeared as expected when building.