# Action Type For Ability Command

Grammar — Action type for abilityCommand
FlagsNative | Function

Returns the action type of an ability command. An ability command is the combination of an ability and an index for a command within that ability.

# Arguments

  • abilcmd — Ability Command

Returns — int<preset::AbilityCommandActionType>

native int AbilityCommandGetAction(abilcmd inAbilCmd);

Category: Order / Ability Commands

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1337

    while ((libSprt_gv_soundRepeatActive == true)) {
        Wait(libSprt_gv_soundRepeatDelay, c_timeGame);
        if ((AbilityCommandGetAction(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)) == c_cmdActionInstant)) {
            UnitIssueOrder(libSprt_gv_soundRepeatCasterUnit, Order(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)), c_orderQueueReplace);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1341

        }

        if ((AbilityCommandGetAction(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)) == c_cmdActionTarget)) {
            if ((AbilityCommandGetAction(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)) == c_cmdActionTarget)) {
                UnitIssueOrder(libSprt_gv_soundRepeatCasterUnit, OrderTargetingUnit(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0), libSprt_gv_soundRepeatTargetUnit), c_orderQueueReplace);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:1342


        if ((AbilityCommandGetAction(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)) == c_cmdActionTarget)) {
            if ((AbilityCommandGetAction(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0)) == c_cmdActionTarget)) {
                UnitIssueOrder(libSprt_gv_soundRepeatCasterUnit, OrderTargetingUnit(AbilityCommand(libSprt_gv_soundRepeatCurrentAbility, 0), libSprt_gv_soundRepeatTargetUnit), c_orderQueueReplace);
            }