| 01-30-2005, 12:52 AM | #1 | |
Alright, for my map I want to make units randomly move to other hidden units in the area. This works fine, however for whatever reason evey once in a while one of the moveing units will stop. As such Ide like to make that unit then start again by randomly choosing a new point to move to. A simplified version of what I have done can be seen below: Quote:
I see nothing wrong with this...Do you? |
| 01-30-2005, 10:58 AM | #2 |
Change (Current order of Archmage 0002 <gen>) Equal to (Order(stop)) to (Current order of Archmage 0002 <gen>) Equal to (Order(idle)) If that won't work make a If/Then/Else action (Shown below). (Shouldn't matter, but try) Code:
Example Trigger [u]-Events-[/u] [i]Time[/i] - Every 0.30 seconds of game time [u]-Conditions-[/u] [u]-Actions-[/u] [i]If/Then/Else[/i] [i]If[/i] - (Current order of Archmage 0002 <gen>) Equal to (Order([b]idle[/b])) [i]Then[/i] - Unit - Order Archmage 0002 <gen> to Attack (Random unit from (Units in (Playable map area))) [i]Else[/i] - Do Nothing |
| 01-30-2005, 12:32 PM | #3 |
Aha, IDLE instead of STOP. Yup, perfect. Thanks. |
