# Flag Is Enabled For Order
Grammar — flag is enabled for order
Flags —Native
|Function
Returns true if the specified flag is enabled.
# Arguments
order
— Orderint
<preset::OrderFlag> — Flag
Returns — bool
native bool OrderGetFlag(order inOrder, int inFlag);
# 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
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3002
// Conditions
if (testConds) {
if (!((OrderGetFlag(EventUnitOrder(), c_cmdQueued) == false))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3002
// Conditions
if (testConds) {
if (!((OrderGetFlag(EventUnitOrder(), c_cmdQueued) == false))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:45
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:86
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:90
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:131
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:135
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:171
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:175
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:271
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:275
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:45
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:86
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:90
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:131
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:135
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:171
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:175
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:271
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:275
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:45
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:86
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:90
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:131
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:135
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:171
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:175
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:271
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:275
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:22058
return true;
}
if ((OrderGetFlag(EventUnitOrder(), c_cmdQueued) == true)) {
lv_queueLocation = c_orderQueueAddToEnd;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:14244
}
if ((OrderGetFlag(lv_order, c_cmdQueued) == true)) {
lv_order = Order(OrderGetAbilityCommand(lv_order));
OrderSetPlayer(lv_order,lv_p);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17881
}
if (!((OrderGetFlag(EventUnitOrder(), c_cmdUser) == true))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17885
}
if (!((OrderGetFlag(EventUnitOrder(), c_cmdQueued) == true))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:21485
// Variable Initialization
lv_order = EventUnitOrder();
lv_queue = OrderGetFlag(lv_order, c_cmdQueued);
lv_laserDrill = libCOMI_gv_cM_LaserDrillUnit[OrderGetPlayer(lv_order)];
lv_orderAttack = OrderTargetingUnit(AbilityCommand("attack", 0), OrderGetTargetUnit(lv_order));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24086
lv_sCV = EventUnit();
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isSetAutoCastStateOrder = OrderGetFlag(lv_orderDummy, c_cmdSetAutoCast);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24087
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isSetAutoCastStateOrder = OrderGetFlag(lv_orderDummy, c_cmdSetAutoCast);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
lv_ut = UnitGetType(lv_target);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24088
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isSetAutoCastStateOrder = OrderGetFlag(lv_orderDummy, c_cmdSetAutoCast);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
lv_ut = UnitGetType(lv_target);
lv_c = TechTreeUnitProducedAbilCmdCount(lv_ut);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24162
lv_sCV = EventUnit();
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
lv_ut = UnitGetType(lv_target);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24163
lv_target = OrderGetTargetUnit(lv_orderDummy);
lv_isUserOrder = OrderGetFlag(lv_orderDummy, c_cmdUser);
lv_isQueuedOrder = OrderGetFlag(lv_orderDummy, c_cmdQueued);
lv_ut = UnitGetType(lv_target);
lv_c = TechTreeUnitProducedAbilCmdCount(lv_ut);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:28162
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1153
// Implementation
lv_microPlayer = OrderGetPlayer(lp_order);
if (((libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickOrderCosts)] == false) || (PlayerGroupHasPlayer(libCOOC_gf_CommanderPlayers(), lv_microPlayer) == false) || (OrderGetFlag(lp_order, c_cmdUser) == false) || (UnitGroupHasUnit(libCOMU_gv_cT_OrderCostImmuneUnits, lp_orderedUnit) == true))) {
return ;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1715
// Implementation
lv_microPlayer = UnitGetOwner(lp_orderedUnit);
if (((libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickAfraidOfTheDark)] == false) || (PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lv_microPlayer) == false) || (OrderGetFlag(lp_order, 8) == false))) {
return ;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1737
// Implementation
lv_microPlayer = UnitGetOwner(lp_orderedUnit);
if (((libCOMU_gv_cT_MutatorEnabledQuickList[(libCOMU_ge_CT_MutatorQuickList_CT_QuickInsubordination)] == false) || (PlayerGroupHasPlayer(libCOOC_gf_HumanPlayers(), lv_microPlayer) == false) || (OrderGetFlag(lp_order, 8) == false) || (OrderGetTargetPosition(lp_order) == null) || (OrderGetTargetType(lp_order) == c_orderTargetNone) || (OrderGetTargetType(lp_order) == c_orderTargetNone))) {
return ;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:45
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:86
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:90
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:131
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:135
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:171
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:175
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:271
}
if (!((OrderGetFlag(lv_order, c_cmdUser) == true))) {
return false;
}
mods/voidmulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:275
}
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:1521
// Conditions
if (testConds) {
if (!((OrderGetFlag(lv_order, c_cmdQueued) == false))) {
return false;
}