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.
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy