# Order Targeting Unit Group

GrammarabilCmd targeting units in unitGroup
FlagsNative | Function

Returns an order targeting a unit group. This is primarily for use in “Issue Order” and “Issue Order To Unit Group” actions.

# Arguments

  • abilcmd — Ability Command
  • unitgroup — Unit Group

Returns — order

native order OrderTargetingUnitGroup(
	abilcmd inAbilCmd,
	unitgroup inUnitGroup,
);

Category: Order / Orders To Be Issued

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L12758
OrderTargetingUnitGroup(AbilityCommand("HerculesTransport", 0), gv_playerUnitGroup)
// L1715
OrderTargetingUnitGroup(AbilityCommand("attack", 0), UnitGroup("Marine", gv_pLAYER_04_REBELS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))
// L679
OrderTargetingUnitGroup(AbilityCommand("SCVHarvest", 0), lv_mineralGroup)
// L1172
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_playerUnits)
// L12758
OrderTargetingUnitGroup(AbilityCommand("HerculesTransport", 0), gv_playerUnitGroup)
// L1715
OrderTargetingUnitGroup(AbilityCommand("attack", 0), UnitGroup("Marine", gv_pLAYER_04_REBELS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))
// L679
OrderTargetingUnitGroup(AbilityCommand("SCVHarvest", 0), lv_mineralGroup)
// L1172
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_playerUnits)
// L1358
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1393
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1428
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1358
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1393
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1428
OrderTargetingUnitGroup(AbilityCommand("attack", 0), gv_broodLordsGroup)
// L1566
OrderTargetingUnitGroup(AbilityCommand("AttackAlly", 0), gv_orderCutsceneUnitGroup)
// L1566
OrderTargetingUnitGroup(AbilityCommand("AttackAlly", 0), gv_orderCutsceneUnitGroup)