| 10-19-2003, 06:17 AM | #1 |
Hi Does anyone know the trigger script to order units that are only controlled by computer from a Unit Group to move to a region. The Unit Group may have units controlled by users and computer, so simply ordering the whole Unit Group won't do. So far I can only manage to specifiy "Players controlled by computer", I can't find any "Units controlled by computer" functions... And you can't order Players to move to any region. I know this sounds basic... but I've been at it for a while and can't get it to work. Maybe I'm out of it... |
| 10-19-2003, 06:26 AM | #2 |
Here is how you do it... basically. TempUnitGroup is simply a UnitGroup variable, no suprise there. Code:
Unit Group - Remove all units from TempUnitGroup
Unit Group - Add all units of MyUnitGroup to TempUnitGroup
-------- Repeat for every Human player that may have units in this group --------
Unit Group - Remove all units of (Units owned by Player 1 (Red)) from TempUnitGroup
Unit Group - Order TempUnitGroup to Move To (Center of (Playable map area))If your wondering why I dont use "set TempUnitGroup = MyUnitGroup" at the start... well, suffice to say, that would cause very bad things to happen. |
| 10-19-2003, 07:00 AM | #3 |
Thanks for the quick reply, doing it now. ![]() |
