# Unit Order Is Acquired

Grammarunit order at index index is Acquired
FlagsNative | Function

Returns true if the unit’s indexed order has been acquired rather than issued explicitly.

# Arguments

  • unit — Unit
  • int — Index

Returns — bool

native bool UnitOrderIsAcquired(unit inUnit, int inIndex);

Category: Unit / Orders

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3133

            }

            if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0)) && (UnitOrderIsAcquired(lv_rexxar, 0) == false) && (UnitIsValid(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0))) == true) && (UnitFilterMatch(OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)), lv_player, UnitFilter((1 << c_targetFilterVisible), 0, (1 << c_targetFilterPlayer) | (1 << c_targetFilterAlly), (1 << (c_targetFilterStasis - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true) && (OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)) != OrderGetTargetUnit(UnitOrder(lv_misha, 0))) && (libGDHL_gv_commandMishaTargetUnit[lv_player] == null)) {
                UnitCreateEffectUnit(lv_rexxar, "RexxarMishaCopyOrders", lv_misha);
                UnitCreateEffectUnit(lv_rexxar, "RexxarMishaTargetingPersistent", OrderGetTargetUnit(UnitOrder(lv_rexxar, 0)));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:3205

        if ((UnitOrderCount(lv_rexxar) != 0) && (UnitBehaviorEnabled(lv_misha, "RexxarMishaHold") == false) && (libGDHL_gv_heroRexxarMishaLastKnownTargetLocation[lv_player] == null)) {
            if ((OrderGetAbilityCommand(UnitOrder(lv_rexxar, 0)) == AbilityCommand("attack", 0))) {
                if ((UnitOrderIsAcquired(lv_rexxar, 0) == true) && (OrderGetTargetPosition(UnitOrder(lv_rexxar, 1)) == UnitGetPosition(lv_rexxar))) {
                    lv_autoAquired = true;
                }