HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

event - a unit is attacked

04-30-2005, 09:37 AM#1
Sven8136
Alright, does anyone know when/how exactly this is triggered? I have been informed that it triggers when a ranged unit initially fires a projectile, not when the projectile hits. It also triggers during the backswing of a melee attack. Do spells trigger this as well? Or is it only physical attacks?
04-30-2005, 09:47 AM#2
Guest
O.k. ... HI!
I have tested this event with a human builder (human player1) and an archer (enemy ai):

EVENT - A unit is attacked
ACTON - Game-Pause

The result was, that the game was already paused when the builder was in range of the archer, who wasn't even shooting, but aiming on the builder!

Hope that helps a bit ;)
04-30-2005, 10:56 AM#3
iNfraNe
spells will not fire it, only physical attacks. And yes you are right, the trigger will fire when the unit "prepares" to attack. if you want to fire a trigger when a unit takes damage, there is the "unit takes damage" event, but note it is only available for a specific unit.
04-30-2005, 12:32 PM#4
Vexorian
I don't get the reasons blizzard had to make it trigger when the attacking is about to start to attack instead of making it trigger when the attack hits.
04-30-2005, 03:00 PM#5
iNfraNe
to make us able to stop a unit from attacking if he isnt allowed to ^_^
04-30-2005, 03:04 PM#6
Vexorian
then they should have called it A unit begings attacking or somehting like that
04-30-2005, 03:16 PM#7
iNfraNe
that would've made more sence yes. But ok, name is wrong, but I still need the event sometimes ^^
04-30-2005, 04:27 PM#8
Sven8136
Basically, I am using it for a custom combat system, and since I can't make it fire with say orb of lightning, then I have to use this to initiate the trigger.

Also, i've seen people saying you can make one of the passive abilities fire a non-passive spell at 100% to check for an attack...does that work?
05-02-2005, 07:03 PM#9
Anitarf
Quote:
Originally Posted by Sven8136
Basically, I am using it for a custom combat system, and since I can't make it fire with say orb of lightning, then I have to use this to initiate the trigger.

Also, i've seen people saying you can make one of the passive abilities fire a non-passive spell at 100% to check for an attack...does that work?
I suppose you are referring to the abilities orb of slow/orb of lightning(new). Yes, that's what they do, they give the unit that has them a chance to use an active ability on a target upon attacks.
05-03-2005, 07:20 AM#10
MindWorX
Quote:
Originally Posted by Anitarf
I suppose you are referring to the abilities orb of slow/orb of lightning(new). Yes, that's what they do, they give the unit that has them a chance to use an active ability on a target upon attacks.
But that ability is kinda wrecked now... Unless you Attack-Move or Attack-Target, the effect wont work, meaning, Auto-Aquire doesn't do jack... :)
05-03-2005, 07:37 AM#11
Sven8136
Thanks for all the replies.