# Action Type For Ability Command
Grammar — Action type for abilityCommand
Flags —Native
|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);
# Related
Category: Order / Ability Commands
- Ability Command —
abilcmd
— AbilityCommand - Ability Of Ability Command —
string
<gamelink::Abil> — AbilityCommandGetAbility - Index Of Ability Command —
int
— AbilityCommandGetCommand - Action Type For Ability Command —
int
<preset::AbilityCommandActionType> — AbilityCommandGetAction
# Examples
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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);
}