I wonder if you could apply this broodling energy death timer thingy to other units with EUDs?
Result should be something like Stukov's marines with a limited life time, while player can have many of them, all with different timers and maybe even some of the base units without timed life at all.
Spawning group of x units and then killing them all with a trigger after y ammount of seconds will not really work for me, sorry.
None.
You probably can't give units the energy bar and counter like on broodlings and hallucinations without modding (assuming that's off the table for you), but you can still give the same internal timer with EUDs. After creating the unit, read the "Player Last Unit" pointer (0x006283F8+4*playerID) to get the "CUnit" entry for your last created unit for that player, and at offset 272 of the CUnit entry (i.e. 0x0059CDB8) is the timer that kills broodlings/disruption webs/dark swarms/hallucinations. Add a value between 1 and 65535 to it and the unit will die after that many game frames (42ms per frame at fastest speed).
Wooah this is exactly what I needed. Thank you so much man. While timer could be a nice addition I don't really need it.
You are the man <3.
Edit: And yes I want to stick to non-modded maps.
None.