• 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.

attack animation condition?

Status
Not open for further replies.
Level 7
Joined
Feb 15, 2005
Messages
183
ok so this is the deal. I need to know the exact moment a unit launches a projectile. I need to know this becuase a trigger I have is dependant on if the unit is alive or not and if the projectile is still in the air when the unit dies. I have looked at cooldown and animation backswings and damage points, and I still can't find an accurate "wait" period in seconds. The time it takes for the unit to make the attack seems to vary, so its hard to pin point an exact "wait" time. Is there any other condition or something I could use to designate the EXACT time a project tile is launched from a unit???
 
Level 7
Joined
Feb 15, 2005
Messages
183
well, let me try to clarify, I need to figure out someway to pin point the exact time a projectile is launched from a unit. The attack event wouldn't work because that is when the unit aquires a target and is "issued" an attack order. not when the actual projectile leaves the unit's weapon.
 
Level 7
Joined
Jul 30, 2004
Messages
451
Draqz said:
well, let me try to clarify, I need to figure out someway to pin point the exact time a projectile is launched from a unit. The attack event wouldn't work because that is when the unit aquires a target and is "issued" an attack order. not when the actual projectile leaves the unit's weapon.

i can't think of any easy way other than once a unit 'attacks' force it to complete its attack and use a few waits after the attack trigger to figure out when it fires

i suppose you could make the unit insta damage with 0 damage, catch the damage event and create a 'modelless' unit above the damaging unit which fires a projectile (i believe that would have 0 delay in firing from the point that the damage occured)
 
Level 8
Joined
Apr 3, 2004
Messages
507
I'm not sure if the "Art - Attack..." fields for the unit in the object editor are in seconds, but if they are, and you're not able to match them perfectly with a trigger, you may be experiencing the default minimum wait time. No wait can be shorter than .25 seconds; the game rounds up if they are.
 
Level 7
Joined
Feb 15, 2005
Messages
183
Right now, what i have is a simply wait, .55 seconds. Thisis roughly the correct amount of time needed from the "order unit to attack" and the projectile getting into the air. But its strange, because sometimes its too long and sometimes its not long enough. The trouble with the exact wait period is that (I think) depending on the unit's current animation or movement, it will delay the time the unit actually starts the attack from the time the order is given.

I looked at the object editor, and I am pretty sure through my testings, that it is not in seconds. I have tried through trial and error to see how different wait periods worked out, the problem is, sometimes it works with the same wait period and sometimes it doesn't. That only tells me that i can't just use a wait period, i need something else.

raptor, that is certainly an interesting idea, making a invis unit. You always seem to have an answer! haha. I will try that. Do you know if the "order unit to damage area" is instantaneous? If this works, I think it will actualy fix several other problems I am also dealing with.
 
Level 7
Joined
Feb 15, 2005
Messages
183
Right now, what i have is a simply wait, .55 seconds. Thisis roughly the correct amount of time needed from the "order unit to attack" and the projectile getting into the air. But its strange, because sometimes its too long and sometimes its not long enough. The trouble with the exact wait period is that (I think) depending on the unit's current animation or movement, it will delay the time the unit actually starts the attack from the time the order is given.

I looked at the object editor, and I am pretty sure through my testings, that it is not in seconds. I have tried through trial and error to see how different wait periods worked out, the problem is, sometimes it works with the same wait period and sometimes it doesn't. That only tells me that i can't just use a wait period, i need something else.

raptor, that is certainly an interesting idea, making a invis unit. You always seem to have an answer! haha. I will try that. Do you know if the "order unit to damage area" is instantaneous? If this works, I think it will actualy fix several other problems I am also dealing with.
 
Level 7
Joined
Jul 30, 2004
Messages
451
Draqz said:
Right now, what i have is a simply wait, .55 seconds. Thisis roughly the correct amount of time needed from the "order unit to attack" and the projectile getting into the air. But its strange, because sometimes its too long and sometimes its not long enough. The trouble with the exact wait period is that (I think) depending on the unit's current animation or movement, it will delay the time the unit actually starts the attack from the time the order is given.

I looked at the object editor, and I am pretty sure through my testings, that it is not in seconds. I have tried through trial and error to see how different wait periods worked out, the problem is, sometimes it works with the same wait period and sometimes it doesn't. That only tells me that i can't just use a wait period, i need something else.

raptor, that is certainly an interesting idea, making a invis unit. You always seem to have an answer! haha. I will try that. Do you know if the "order unit to damage area" is instantaneous? If this works, I think it will actualy fix several other problems I am also dealing with.

meh i just have an imagination to come up with a lot of random things and hope they work

and damage area does work instantaneously
 
Status
Not open for further replies.
Top