• 0

    posted a message on Giving orders to an Entire Group

    Here's one way of doing it (This runs at map initialization): First (1), make a local or global unit group variable. I would suggest making a global if you want to order these same units easily in another trigger, if you're not going to ever order them again then you don't even need this. Secondly (2), do an action that makes 10 marines at map initialization at the center of the map (or any region you want). Third (3), add a unit group to your variable unit group that you created, in this instance the 2 unit groups are the marines at the region you created them and the unit group variable you made earlier. Fourth (4), order all the units in the unit group to move (you have to set it to order targeting a point) to a region or point.

    Example:
    Trigger Name
    Events
    Game - Map initialization
    Local Variables
    1.) Marine Group = (Empty unit group) <Unit Group>
    Conditions
    Actions
    2.) Unit - Create 10 Marine for player 1 at (Center of (Entire map)) using default facing (No Options)
    3.) Unit Group - Add all units in (Marine units in (Entire map) owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) to Marine Group
    4.) Unit - Order all units in Marine Group to ( Move targeting (Bottom-left of (Entire map) bounds)) (Replace Existing Orders)

    I hope this helped.

    Posted in: Galaxy Scripting
  • To post a comment, please or register a new account.