HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A very big problem..

07-02-2003, 02:17 AM#1
Silenkiller
Ok, heres the deal..

I need a way to make it so a unit can only be killed by your OWN damage. This includes splash damage. See, you unit is around a crap load of splash damage from not only your units, but your allies. I need it so only YOUR splash damage will kill your unit.

Kinda tricky eh? Any ideas?

Thnx - Silen
07-02-2003, 02:30 AM#2
mikedogdude
Umm, the only way i can think of is through triggers. Keep an integer variable array of all the units you want this to work on's HP. Then do a trigger that if a unit is attacked, it checks if the attacker is an ally, if so, it sets the variable to the current HP, if not, it sets the units HP to the variable, so it restores lost HP.
07-02-2003, 02:31 AM#3
Silenkiller
That wont work.. if the unit is attacked it will already be dead. The units have to die in 1 hit.
07-02-2003, 02:51 AM#4
Raptor--
u can set the unit to be able to attack anything with an artillery type shot, and make splash damage only hurt 'self' or something like 'self'
07-02-2003, 02:57 AM#5
piRo-piOn
Area of Effect Target - friend
07-02-2003, 02:58 AM#6
Silenkiller
Well, that same splash attack not only has to kill YOUR unit, but also kill the enemy units. And it cannot CANNOT be killed by ur allies.
07-02-2003, 08:20 AM#7
nagelin
you could try modifying the splash targets for everything to be enemy,player I'm not entirely sure that this will rule out allies (friend), but it's worth a try
07-02-2003, 03:30 PM#8
Silenkiller
Quote:
Originally posted by nagelin
you could try modifying the splash targets for everything to be enemy,player I'm not entirely sure that this will rule out allies (friend), but it's worth a try


Well.. if i did that.. i think what your saying is make it so that the unit is considered an enemy.. my allies would kill it.
07-02-2003, 03:59 PM#9
Raptor--
try checking off 'enemy' and 'self' in the splash damage box

also, if all else fails u can give different player units different types (organic, mechanical, etc) and have splash effect only those types that u want it to