| 02-20-2010, 03:34 PM | #1 |
as the post below this...i'm still trying to make a spell that emulates the ranged attacks of a unit by using xecollider. I've managed to make projectiles collide with the targeted unit only by using this condition in the onUnitHit method JASS:
method onUnitHit takes unit hitunit returns nothing
if (hitunit==this.targetUnit ) then
call damageOptions.damageTarget(this.castingHero , hitunit, this.level * 25.0 )
call this.terminate()
endif
But i have no clue on how to make projectiles die in the place where the unit died if this is actually dead but there are projectiles still flying to the unit. EDIT: Solved this too...it would be nice to have a "onLocationHit" or something in the xe system though |
