WuHT
New Member
- Reaction score
- 6
So my ability is this :
Deal an AoE damage based on the # of corpses in the aoe, x 75 to only enemy units.
---------------
Err change of questoins .
This shoudl have been asked "How do i remove corpses in a specified Area" ??
My last bit removes ANY unit picked..not just the dead. My only alternative would be to create a lot of dummy units to raise dead..but that's just laggy.
Deal an AoE damage based on the # of corpses in the aoe, x 75 to only enemy units.
Code:
B Soul Rend
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to B Soul Rend
Actions
Set Bsoulrender = (Target point of ability being cast)
Set Bsoulrend = (Number of units in (Units within 250.00 of Bsoulrender matching (((Matching unit) is dead) Equal to True)))
Unit Group - Pick every unit in (Units within 250.00 of Bsoulrender matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Cause (Casting unit) to damage (Picked unit), dealing (75.00 x (Real(Bsoulrend))) damage of attack type Magic and damage type Normal
Special Effect - Create a special effect at Bsoulrender using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
Unit Group - Pick every unit in (Units within 250.00 of Bsoulrender matching (((Picked unit) is dead) Equal to True)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
---------------
Err change of questoins .
This shoudl have been asked "How do i remove corpses in a specified Area" ??
My last bit removes ANY unit picked..not just the dead. My only alternative would be to create a lot of dummy units to raise dead..but that's just laggy.