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.
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
Please log in to shout.


Members Online: Moose