| 02-02-2004, 08:08 PM | #1 |
ok, my map, enemy heros spawn. they are ordered to attack a player unit, after it kills a player unit however, the hero stops in place and doesnt chase any other players. now, would the heros order right now be stop? or what, because i want a condition to be if the heros current orders are stop, order him to attack another random unit of random player in player group. |
| 02-02-2004, 08:12 PM | #2 |
use this "order Attacking_enemy_hero to atack-move to position of attacked_player_unit" |
| 02-02-2004, 08:16 PM | #3 |
Events Unit - A unit Is issued an order with no target Conditions (Current order of (Triggering unit)) Equal to (Order(stop)) Actions Unit - Order (Triggering unit) to Attack (Random unit from (Units in (Playable map area) owned by (Random player from (All players)))) |
| 02-02-2004, 08:26 PM | #4 |
i'll have to spoil it for you, but when the computer finishes the action, it doesn't use the "stop" order, and that trigger will fire for every unit issued a "stop" action...in other words, better use "attack move to position..." EDIT: after reviewing it some more, i noticed that it will be ordered to attack ANY unit, including its own, since u used "all players" ... |
| 02-02-2004, 08:35 PM | #5 |
actually ive looked at your suggestions and used none of them because they arent what im looking for. is there a way to detect if a unit isnt moving then? |
| 02-02-2004, 08:41 PM | #6 |
if u want units killed in a certain order, one by one, try this E:unit dies C:dying unit equals to <your unit> A: order <attacking unit> to attack <next unit> |
| 02-02-2004, 08:49 PM | #7 |
that had nothing to do with my question. and it wouldnt work either because the player units revive. i want to know if there is ANY way to detect if a unit is not moving ie, not attacking or following to attack a player unit |
| 02-02-2004, 09:03 PM | #8 |
hardly...try looking for "unit is idle" or such.... maybe u'll find it if u dig deep enough, cuz when u have workers that don't do anything, it shows u that "idle worker" pic... i wonder if that could be returned thru a trigger somehow ? |
