• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Delaying actions for attacks and missile spells

Status
Not open for further replies.
Level 2
Joined
May 24, 2008
Messages
21
Greetings,

I have searched the forums and been unable to find anything related to my question.

1. Is there any way to delay the actions for a "unit is attacked" so that the triggered actions occur after the unit actually attacks? Right now the triggered damage occurs first and this isn't treated as an attack so the unit can potentially kill 20 things in a second if their HP is low enough. It looks glitchy.

2. Similarly, I have a spell based on storm bolt, and would like the action damage to occur when the bolt hits the target. Right now I am using a wait of (distance between units / missile speed) but it is not a local variable trigger so there can be problems, in addition the time is not exactly accurate.

Any ideas? Many thanks.
 
Level 24
Joined
May 9, 2007
Messages
3,563
These things are always a pain.

1) Use Orb effects, and buff detection and through this you can make some handy cheats. It's a pain, but mess around with it.

2) I would reccomend creatinga dummy unit (unit with no model + the locust ability), and use it instead. Then check the number of units surrounding it, and if > 0 then do actions.

It's a pain and you have to use two triggers to do it properly in GUI, but its the best way I can think of.
 
Status
Not open for further replies.
Top