| 12-10-2004, 09:55 PM | #1 |
I have a trigger that says when a pl;ayer orders a unit clicks have the unit ordered attack ground... but it doesnt work... could someone help? |
| 12-11-2004, 01:32 AM | #2 |
could you possibly mean: unit - unit order unit to attack move to center of region - ? if you want more than one unit to do this, create a region under the units you wish to do the attack move and use the following trigger (might be hard to figure out) - Unit - Unit pick every unit in "units go attack" and order "picked unit" to Attack - Move to center of "attack here" - if none of this solves your problem, please be more specific in your question. Peace Out †|
| 12-11-2004, 03:53 AM | #3 |
My exact trigger is: Code:
Events:
Unit - A generic unit is issued an order
Conditions:
(issued order) = (order(smart))
Actions:
Set Variable - Set RightClickLocation = (target point of issued order)
[color=Yellow]///It stops working here. I have tried using other actions with the same
above material and gotten working results...///[/color]
Unit - Order (ordered unit) to attack ground RightClickLocation-Thanks |
| 12-11-2004, 05:10 AM | #4 |
Odd, that should work. Check if your unit's attack has sufficient range and is artillery type attack. |
| 12-11-2004, 03:18 PM | #5 | |
Quote:
and I guesss ill start a new in the meantime... |
| 12-11-2004, 04:21 PM | #6 |
There are other factors. Bottom line is, can you manually order the unit to attack ground? Try that first, then try to get the computer to do the same. |
| 12-11-2004, 06:20 PM | #7 |
Well, if you didn't have the condition, I would say your problem is a recursive trigger. I mean, you say it stops working, does it freeze, or throw you out of war3? That would happen if the trigger was recursive, meaning that it's actions run the event again... but with that condition you have, this trigger should stop when running on itself, because the order issued by the triger is not "smart". But still, it looks like the trigger runs itself over and over again... I mean, the map stops working at the right spot, you said that it worked if you had different actions (non-issue-order ones, I persume)... |
| 12-11-2004, 08:20 PM | #8 | ||
Quote:
Quote:
|
