# Ability Command

Grammar — (ability, command)
FlagsNative | Function

Constructs an ability command from an ability and an index. An ability command is the combination of an ability and an index for a command within that ability. Command indexes are 0 based.

# Arguments

  • string [ gamelink::Abil ] — Ability
  • int — Command

Returns — abilcmd

native abilcmd AbilityCommand(
	string inAbil,
	int inCmdIndex,
);

Category: Order / Ability Commands

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L820
AbilityCommand("SS_CarrierSpawnInterceptor", 0)
// L847
AbilityCommand("move", 0)
// L1109
AbilityCommand("move", 0)
// L1160
AbilityCommand("SS_LeviathanSpawnBombs", 0)
// L1178
AbilityCommand("move", 0)
// L1548
AbilityCommand("SS_LightningProjectorToggle", 0)
// L1556
AbilityCommand("SS_LightningProjectorToggle", 1)
// L1563
AbilityCommand("SS_LightningProjectorToggle", 0)
// L1681
AbilityCommand("SS_ScienceVesselTeleport", 0)
// L1727
AbilityCommand("move", 0)
// L308
AbilityCommand("move", 0)
// L309
AbilityCommand("move", 2)
// L333
AbilityCommand("Rally", 0)
// L335
AbilityCommand("HutTransport", 1)
// L374
AbilityCommand("move", 0)
// L375
AbilityCommand("GenerateCreep", 0)
// L377
AbilityCommand("move", 2)
// L409
AbilityCommand("BurrowZerglingUp", 0)
// L661
AbilityCommand("BurrowZerglingUp", 0)
// L1016
AbilityCommand("SpecOpsDropshipTransport", 2)
// L459
AbilityCommand("BurrowInfestedTerranCampaignUp", 0)
// L465
AbilityCommand("move", 0)
// L515
AbilityCommand("NeuralParasite", 0)
// L896
AbilityCommand("BurrowInfestedTerranCampaignUp", 0)
// L899
AbilityCommand("BurrowInfestedTerranCampaignUp", 0)
// L903
AbilityCommand("attack", 0)
// L904
AbilityCommand("attack", 0)
// L906
AbilityCommand("attack", 0)
// L907
AbilityCommand("attack", 0)
// L920
AbilityCommand("attack", 0)
// L305
AbilityCommand("move", 0)
// L482
AbilityCommand("GravitonBeam", 0)
// L872
AbilityCommand("CarrierHangar", 0)
// L1160
AbilityCommand("PurifierTogglePower", 1)
// L1179
AbilityCommand("move", 0)
// L1180
AbilityCommand("move", 0)
// L1285
AbilityCommand("move", 0)
// L1286
AbilityCommand("move", 2)
// L1287
AbilityCommand("PurifierTogglePower", 0)
// L1311
AbilityCommand("PurifierPlanetCracker", 0)
// L313
AbilityCommand("BurrowInfestedCivilianUp", 0)
// L321
AbilityCommand("BurrowInfestedTerranCampaignUp", 0)
// L336
AbilityCommand("BurrowDroneUp", 0)
// L401
AbilityCommand("move", 2)
// L409
AbilityCommand("move", 2)
// L501
AbilityCommand("move", 0)
// L502
AbilityCommand("move", 2)
// L534
AbilityCommand("move", 0)
// L535
AbilityCommand("move", 2)
// L606
AbilityCommand("attack", 0)
// L2062
AbilityCommand("attack", 0)
// L2069
AbilityCommand("attack", 0)
// L2155
AbilityCommand("move", 0)
// L2518
AbilityCommand("attack", 0)
// L2522
AbilityCommand("attack", 0)
// L2525
AbilityCommand("attack", 0)
// L2569
AbilityCommand("attack", 0)
// L3267
AbilityCommand("Pickup", 0)
// L4546
AbilityCommand("attack", 0)
// L4559
AbilityCommand("attack", 0)
// L357
AbilityCommand("ArmSiloWithNuke", 0)
// L358
AbilityCommand("GhostCloak", 0)
// L361
AbilityCommand("TacNukeStrike", 0)
// L362
AbilityCommand("move", 0)
// L363
AbilityCommand("GhostCloak", 1)
// L1031
AbilityCommand("CommandCenterLand", 0)
// L1032
AbilityCommand("CommandCenterTransport", 1)
// L1033
AbilityCommand("BarracksLand", 0)
// L1034
AbilityCommand("FactoryLand", 0)
// L1035
AbilityCommand("SpecOpsDropshipTransport", 2)
// L328
AbilityCommand("WraithCloak", 0)
// L329
AbilityCommand("WraithCloak", 1)
// L443
AbilityCommand("move", 2)
// L481
AbilityCommand("move", 2)
// L483
AbilityCommand("move", 2)
// L500
AbilityCommand("Repair", 0)
// L501
AbilityCommand("Repair", 0)
// L789
AbilityCommand("move", 0)
// L850
AbilityCommand("attack", 0)
// L853
AbilityCommand("attack", 0)
// L445
AbilityCommand("attack", 0)
// L750
AbilityCommand("move", 0)
// L800
AbilityCommand("OdinNuclearStrike", 0)
// L941
AbilityCommand("move", 2)
// L1141
AbilityCommand("BansheeCloak", 0)
// L1450
AbilityCommand("move", 0)
// L1451
AbilityCommand("move", 0)
// L1452
AbilityCommand("move", 0)
// L1453
AbilityCommand("move", 0)
// L1454
AbilityCommand("move", 0)
// L1421
AbilityCommand("TossGrenade", 0)
// L1469
AbilityCommand("Pickup", 0)
// L1496
AbilityCommand("ExperimentalPlasmaGun", 0)
// L1545
AbilityCommand("Pickup", 0)
// L1572
AbilityCommand("TheMorosDevice", 0)
// L1621
AbilityCommand("Pickup", 0)
// L1665
AbilityCommand("Pickup", 0)
// L1686
AbilityCommand("TossGrenade", 0)
// L1714
AbilityCommand("TossGrenade", 0)
// L1742
AbilityCommand("ExperimentalPlasmaGun", 0)