HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Quesion.

09-06-2004, 03:02 AM#1
TheFirstSword
I need to make it so that when a unit attacks another unit it only attacks it once, when I use order unit to attack another unit it kills then unit all the way, can anyone help so the unit only hits the other unit once?
09-06-2004, 04:01 AM#2
horusrogue
Right, i did this too in a cinematic sequence...you need to find out how long a unit attack animation is, and make a trigger based on that (i mean giving a trigger a timed order TO attack), I think you should look at the cooldown time...for an estimate...(how long it takes for a unit to wait until attacking again)...
Basically
Actions:
Give Unit order(attack) an object
Wait (time of one attack)
Give unit order(stop)
Thats my thought, may it serve you well...
09-06-2004, 04:04 AM#3
TheFirstSword
Quote:
Originally Posted by horusrogue
Right, i did this too in a cinematic sequence...you need to find out how long a unit attack animation is, and make a trigger based on that (i mean giving a trigger a timed order TO attack), I think you should look at the cooldown time...for an estimate...(how long it takes for a unit to wait until attacking again)...
Basically
Actions:
Give Unit order(attack) an object
Wait (time of one attack)
Give unit order(stop)
Thats my thought, may it serve you well...
Woah dude thanks alot! rep added!
09-06-2004, 04:32 AM#4
[niro]
Lol, just order the unit to "Attack Once" its right next to attack.
09-06-2004, 05:05 AM#5
scriber
Try this:
Event
A unit is attacked
Action
Order attacking unit to stop
Order attacking to attack attacked unit once

Then if you dont want that unit attacked by the same unit set a variable for attacked unit and attacking unit and turn on a trigger like this:

Event
A unit is attacked
Action
If attacked unit equal to (Variable- attacked unit) and attacking unit equal to (Variable- attacking unit) then do order attacking unit to stop.
09-06-2004, 06:18 AM#6
TheFirstSword
Quote:
Originally Posted by [niro]
Lol, just order the unit to "Attack Once" its right next to attack.
WOW DO I FEEL STUPID!
09-07-2004, 02:59 AM#7
horusrogue
Yea, i just gave you my method..since i had to reinstall war 3...and i have misplaced my tft cd So i can only reference war 3 roc until I find it.