# Order Set Flag

Grammar — Set flag to be value for order
FlagsNative | Action

Returns true if the specified flag is enabled.

# Arguments

  • order — Order
  • int<preset::OrderFlag> — Flag
  • bool — Value

Returns — void

native void OrderSetFlag(
	order inOrder,
	int inFlag,
	bool inValue,
);

Category: Order / Order Properties

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:17959

        lv_order = OrderTargetingPoint(AbilityCommand("move", 0), lv_rallyPoint);
    }
    OrderSetFlag(lv_order, c_cmdSmartRally, true);
    UnitIssueOrder(lv_dehakaclone, lv_order, c_orderQueueReplace);
    UnitBehaviorAdd(lv_dehakaclone, libCOMI_gv_cM_DehakaVeterencyBehavior[lv_dehakaplayer], lv_dehakaclone, 1);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:18010

        lv_order = OrderTargetingPoint(AbilityCommand("move", 0), lv_rallyPoint);
    }
    OrderSetFlag(lv_order, c_cmdSmartRally, true);
    UnitIssueOrder(lv_dehakaclone, lv_order, c_orderQueueReplace);
    libCOMI_gf_CM_Dehaka_LevelUp(lv_dehakaplayer, lv_dehakaclone);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:21494

    }

    OrderSetFlag(lv_orderAttack, c_cmdQueued, lv_queue);
    UnitIssueOrder(lv_laserDrill, lv_orderAttack, c_orderQueueReplace);
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:24119


        lv_order = OrderTargetingUnit(lv_cmd, lv_target);
        OrderSetFlag(lv_order, c_cmdSmartClick, true);
        OrderSetFlag(lv_order, c_cmdQueued, lv_isQueuedOrder);
        if ((UnitOrderIsValid(lv_sCV, lv_order) == true)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:24120

        lv_order = OrderTargetingUnit(lv_cmd, lv_target);
        OrderSetFlag(lv_order, c_cmdSmartClick, true);
        OrderSetFlag(lv_order, c_cmdQueued, lv_isQueuedOrder);
        if ((UnitOrderIsValid(lv_sCV, lv_order) == true)) {
            UnitIssueOrder(lv_sCV, lv_order, c_orderQueueReplace);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:24190


        lv_order = OrderTargetingUnit(lv_cmd, lv_target);
        OrderSetFlag(lv_order, c_cmdSmartClick, true);
        if ((UnitOrderIsValid(lv_sCV, lv_order) == true)) {
            UnitIssueOrder(lv_sCV, lv_order, c_orderQueueAddToFront);