Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Spawning on an attack?
Spawning on an attack?
May 22 2013, 7:58 pm
By: Omegwavex  

May 22 2013, 7:58 pm Omegwavex Post #1



I've seen this done in quite a few maps.
An example would be a reaver attacks a goliath, as soon as the scarab hits the goliath and explodes, it would spawn some wraiths to do additional damage. How is this done? Might not be a good example due to the possibility of just " 2 players bring" blahblahblah. Create wraiths.
Just for a preferance of like, a gaurdian, or a vulture or something.



None.

May 23 2013, 1:04 am Roy Post #2

An artist's depiction of an Extended Unit Death

Moved to the SC1 UMS Assistance forum.

In short, there isn't a straightforward way (that I know, at least).

In order to have a true system that functions off of damage, you'd need to either use a Virtual HP system or use EUDs to detect HP. I wouldn't recommend the EUD route unless you have some strict control of units in your map.

Like you already mentioned, there are ways to fake this behavior depending on the scenario, such as detecting when a Scarab is near an enemy unit. If the attacking unit is preplaced, you can use EUDs to detect when they attack based on the Attack Cooldown byte in the unit struct (more information on unit EUDs).

If you can use a Virtual HP system in your map, that would likely be the most elegant solution to detect through triggers when units are attacked.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:48 am]
Symmetry -- I added a couple more screenshots :)
[09:35 pm]
Symmetry -- hopefully I can provide an awesome map!
[09:26 pm]
Butch -- sounds effing awesome
[08:56 pm]
Symmetry -- I need some more concrete ideas for episode 3. My idea is that you're an emerging consciousness in a Flat Earth experiment trying to escape the cruel grip of science.
[08:53 pm]
Symmetry -- I promise it's moderately fun :hurr:
[05:37 am]
Ultraviolet -- :lol:
[04:11 am]
l)ark_ssj9kevin -- You got me at Rizzagal
[2026-10-18. : 1:22 am]
Symmetry -- https://staredit.net/topic/18946/ <- Look
[2026-10-17. : 2:31 am]
Symmetry -- ...you know what nevermind we're cool
[2026-10-17. : 2:31 am]
Symmetry -- Dammit Moose I always take the center when it's open D:
Please log in to shout.


Members Online: Symmetry, Butch