I want to spawn another unit when any unit dies in its place. I realize this can be done very easily with triggers, but I need some practice with actors and actor events. So far I've tried using Create.*unitName* > Create but nothing happened. I'm very noobish with actor events, please help. :p
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Actors and their events are purely visual, they cannot spawn units. If you want a real unit and not just a visual actor, I recommend using a behavior, which uses a Create Unit effect as Effect - Final, which should be triggered on death.
As said above use a Buff with a death response when damage is fatal to create the unit. In short just do like the zerg buildings.
What would be the best way to do this if I wanted this to apply to every single unit in the game without having to add the behaviors to them all?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
What would be the best way to do this if I wanted this to apply to every single unit in the game without having to add the behaviors to them all?
You dont. You need some way of adding the behavior to all units in the game. You can do that by adding it manually to all units in the data editor (shouldn't take long, if you use multiple selection and bulk-copy fields), or you use some sort of aura unit somewhere on the map, which applies the behavior to all units at runtime.
I want to spawn another unit when any unit dies in its place. I realize this can be done very easily with triggers, but I need some practice with actors and actor events. So far I've tried using Create.*unitName* > Create but nothing happened. I'm very noobish with actor events, please help. :p
Actors and their events are purely visual, they cannot spawn units. If you want a real unit and not just a visual actor, I recommend using a behavior, which uses a Create Unit effect as Effect - Final, which should be triggered on death.
As said above use a Buff with a death response when damage is fatal to create the unit. In short just do like the zerg buildings.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
What would be the best way to do this if I wanted this to apply to every single unit in the game without having to add the behaviors to them all?
You dont. You need some way of adding the behavior to all units in the game. You can do that by adding it manually to all units in the data editor (shouldn't take long, if you use multiple selection and bulk-copy fields), or you use some sort of aura unit somewhere on the map, which applies the behavior to all units at runtime.