HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack Ground With Trigger

12-10-2004, 09:55 PM#1
UndercoverIdiot
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
player_72985
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
UndercoverIdiot
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
Does that help the question along?
-Thanks
12-11-2004, 05:10 AM#4
th15
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
UndercoverIdiot
Quote:
Originally Posted by th15
Odd, that should work. Check if your unit's attack has sufficient range and is artillery type attack.
Thats exactly why im confused, it sould work... I just double checked these things and he has 2000 range and artillery attack so its not that. This forces me to put my current project on hold and I guesss ill start a new in the meantime...
12-11-2004, 04:21 PM#6
th15
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
Anitarf
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
UndercoverIdiot
Quote:
Originally Posted by th15
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.
Yes I can manually attack ground...


Quote:
Originally Posted by Anitarf
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)...
No, the game does not crash it just doesnt do the action... Also it doesn't work for any order unit action but does for any others that ive tried...