I am somewhat new to the Starcraft 2 editor (I started 1 week ago) and I am working on a "Tug of War" kind of map. In my map, lots of units are created dynamically and I want each unit of a certain category to have a "death timer". I couldn't find how to do that easily in the editor so please help me!
By the way, since its my first post, I'd like to thank all of you for the amazing resources I found on this website. I was really impressed to see such an active community around sc2 map making! Sc2mapster really helps me develop my map. I hope I'll be able to contribute in the future, and give back as much as I received.
Check behavior called "timed life". Play around with it, you can add it directly to unit types in data editor or add them when you believe is applicable in triggers.
What you want is a behavior on the unit of type Buff. This behavior you will give the duration you want. Then for the Expire Effect, you want to use Suicide, which is a damage effect, that does 0 damage, but has the Kill flag enabled, thus it will kill any unit it is applied to.
Thanks a lot guys, this worked (and I learnt about behaviors!). I should have thought to look how timed life units like auto turrets and changelings worked!
For info: when I copied the "Timed Life" behavior (#14), my new behavior didn't show up anywhere as a behavior option. However, copying "Private Timed Life" (#17) and "Public Timed Life" (#18) worked just fine. I ended up adding my new behavior to the units in the Data editor directly, but adding it in the trigger editor using the Action "Add behavior" also worked.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi there!
I am somewhat new to the Starcraft 2 editor (I started 1 week ago) and I am working on a "Tug of War" kind of map. In my map, lots of units are created dynamically and I want each unit of a certain category to have a "death timer". I couldn't find how to do that easily in the editor so please help me!
By the way, since its my first post, I'd like to thank all of you for the amazing resources I found on this website. I was really impressed to see such an active community around sc2 map making! Sc2mapster really helps me develop my map. I hope I'll be able to contribute in the future, and give back as much as I received.
death timer like the "timedlife" behaviour? just add the buff to the unit.
Hi there,
Check behavior called "timed life". Play around with it, you can add it directly to unit types in data editor or add them when you believe is applicable in triggers.
Regards
Matic
What you want is a behavior on the unit of type Buff. This behavior you will give the duration you want. Then for the Expire Effect, you want to use Suicide, which is a damage effect, that does 0 damage, but has the Kill flag enabled, thus it will kill any unit it is applied to.
Thanks a lot guys, this worked (and I learnt about behaviors!). I should have thought to look how timed life units like auto turrets and changelings worked!
For info: when I copied the "Timed Life" behavior (#14), my new behavior didn't show up anywhere as a behavior option. However, copying "Private Timed Life" (#17) and "Public Timed Life" (#18) worked just fine. I ended up adding my new behavior to the units in the Data editor directly, but adding it in the trigger editor using the Action "Add behavior" also worked.