# Order Set Flag
Grammar — Set flag to be value for order
Flags —Native
|Action
Returns true if the specified flag is enabled.
# Arguments
order
— Orderint
<preset::OrderFlag> — Flagbool
— Value
Returns — void
native void OrderSetFlag(
order inOrder,
int inFlag,
bool inValue,
);
# Related
Category: Order / Order Properties
- Player For Order —
int
— OrderGetPlayer - Ability Command For Order —
abilcmd
— OrderGetAbilityCommand - Flag Is Enabled For Order —
bool
— OrderGetFlag - Target Item For Order —
unit
— OrderGetTargetItem - Target Point For Order —
point
— OrderGetTargetPoint - Target Position For Order —
point
— OrderGetTargetPosition - Target Type For Order —
int
<preset::OrderTargetType> — OrderGetTargetType - Target Unit For Order —
unit
— OrderGetTargetUnit - Order Is Valid —
bool
— UnitOrderIsValid - Order Set Flag —
void
— OrderSetFlag
# Examples
mods/starcoop/starcoop.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibCOMI.galaxy:21494
}
OrderSetFlag(lv_orderAttack, c_cmdQueued, lv_queue);
UnitIssueOrder(lv_laserDrill, lv_orderAttack, c_orderQueueReplace);
return true;
mods/starcoop/starcoop.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);