Warcraft III resources & community, 2003–2006 · archived

help with unit attacks

5 posts
#1

help with unit attacks

how can i make it so that when a ability or key is used/pressed a unit will attack withought a target so itll only hurt wuts directly infront of it... do u kno wut im saying?
#2
could just make a dummy aoe spell with very low aoe and dummy caster then use then use a trigger the make the dummy cast the spell infront of him, or just wait till the patch for the Damage Area action.
#3
use whatever actions u want, such as a dummy spell as said before, and when its triggered

either
pick all units in 64.00 range of ((position of casting unit_\) offset by (96.00) towards (facing angle of casting unit))
if unit is not owned by owner of casting unit then set unit life to unit life - 20

set temp unit = random unit from (stuff above)
set temp unit life = temp unit life - 20

at least something like that would be the MOST basic way
#4
wow thanx raptor... but this temp stuff is that only for a different version of we
#5
lifesonthelinewow thanx raptor... but this temp stuff is that only for a different version of we


i only use the original version of waredit, that temp stuff is just variables its easier to just type in pseudocode then to actually write out things how they look