HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Not sure how i would implement this feature, need help.

03-25-2006, 08:33 AM#1
n13astra
What im trying to do is create a BOSS level where the only way you can kill him is by destroying a destructable (barrel in my case) next to the boss. Im having trouble making a trigger do this,

If a destructable dies, how do i check if the BOSS is with a certain range of the dying destructable, and if so, remove xxx amount of his life.

I would prefer if this is done in GUI, but if i have to, ill write JASS, even though ive never done that before.

Thanks in advance guys.
03-25-2006, 01:12 PM#2
Anitarf
Hi, and welcome to wc3campaigns.

You already know what event to use, a destructible dies, then use a real comparison as a condition, comparing the distance between two points: position of the dying destructible and position of the boss. If the distance is below a certain value, deal damage to the boss (there's a unit action for dealing damage).
03-25-2006, 10:35 PM#3
n13astra
Thanks for the welcoming. Your suggestion worked like a charm, thanks a lot!