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.
[02:53 am]
Ultraviolet -- :wob:
[2026-11-27. : 10:21 am]
Zycorax -- :wob:
[2026-11-27. : 9:46 am]
UndeadStar -- :wob:
[2026-11-27. : 3:45 am]
Symmetry -- :wob:
[2026-11-24. : 7:28 pm]
Mr.BurnLiquid -- Thanks
[2026-11-24. : 7:17 pm]
NudeRaider -- you can't, just edit.
[2026-11-24. : 6:33 pm]
Mr.BurnLiquid -- Hi, how do I delete posts I’ve made? I was practicing with map editing or at least working with existing maps but I’d like to delete them; I’ve since refined my style and want to start fresh with new posts.
[2026-11-21. : 7:14 pm]
Symmetry -- so it shows the version history of temple siege
[2026-11-21. : 7:13 pm]
Symmetry -- I think he's trying to find the most popular versions of maps
[2026-11-21. : 9:24 am]
UndeadStar -- yes it helped...but I didn't understand what the picture was about lol
Please log in to shout.


Members Online: IlyaSnopchenko