# Allow/Disallow Ability For Player
Grammar — allow|Allow/Disallow the abilCmd ability for player p
Flags —Native
|Action
Allows or disallows an ability to be used by the specified player. This is only useful if tech restrictions have been enabled using “Enable/Disable Tech Tree Restrictions”. If the ability has a tech requirement, the requirement must still be met for the player to use the ability.
# Arguments
int
— Playerabilcmd
— Ability Commandbool
[ preset::AllowDisallowOption ] — Allow
Returns — void
native void TechTreeAbilityAllow(
int player,
abilcmd inAbilCmd,
bool allow,
);
# Related
Category: Tech Tree / Individual Restrictions
- [F] —
bool
— Specific Requirements Are Enabled For Player — ( TechTreeSpecificRequirementEnabled ) - [F] —
void
— Enable/Disable SpecificTech Tree Requirements — ( TechTreeSpecificRequirementEnable ) - [F] —
void
— Allow/Disallow Behavior For Player — ( TechTreeBehaviorAllow ) - [F] —
void
— Allow/Disallow Ability For Player — ( TechTreeAbilityAllow ) - [F] —
void
— Allow/Disallow Unit For Player — ( TechTreeUnitAllow ) - [F] —
void
— Allow/Disallow Upgrade For Player — ( TechTreeUpgradeAllow ) - [F] —
bool
— Ability Is Allowed For Player — ( TechTreeAbilityIsAllowed ) - [F] —
bool
— Behavior Is Allowed For Player — ( TechTreeBehaviorIsAllowed ) - [F] —
bool
— Unit Is Allowed For Player — ( TechTreeUnitIsAllowed ) - [F] —
bool
— Upgrade Is Allowed For Player — ( TechTreeUpgradeIsAllowed ) - [F] —
void
— Add Upgrade Level For Player — ( TechTreeUpgradeAddLevel ) - [F] —
void
— Set Upgrade Level For Player — ( libNtve_gf_SetUpgradeLevelForPlayer ) - [F] —
void
— Set Production Cap For Player — ( TechTreeSetProduceCap ) - [F] —
int
— Production Cap For Player — ( TechTreeGetProduceCap )
# Examples
# campaigns/liberty.sc2campaign
// L213
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TemplarArchivesResearch", 4), true)
// L214
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TwilightCouncilResearch", 1), true)
// L215
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TwilightCouncilResearch", 0), true)
// L216
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MorphBackToGateway", 0), false)
// L217
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 4), true)
// L218
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 0), true)
// L219
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 1), true)
// L220
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 2), true)
// L221
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 5), true)
// L222
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("WarpGateTrain", 3), true)
// L534
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("ForceField", 0), true)
// L535
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TemporalRift", 0), true)
// L540
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationArchon", 0), true)
// L541
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationColossus", 0), true)
// L542
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationHighTemplar", 0), true)
// L543
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationImmortal", 0), true)
// L544
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationPhoenix", 0), true)
// L545
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationProbe", 0), true)
// L546
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationStalker", 0), true)
// L547
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationVoidRay", 0), true)
// L299
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("Snipe", 0), false)
// L300
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("PsiStorm", 0), true)
// L301
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("ArchonWarp", 0), true)
// L302
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("ArchonWarp", 1), true)
// L303
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("ForceField", 0), true)
// L304
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationArchon", 0), true)
// L305
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationColossus", 0), true)
// L306
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationHighTemplar", 0), true)
// L307
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationImmortal", 0), true)
// L308
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationPhoenix", 0), true)
// L232
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("ScannerSweep", 0), false)
// L233
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 1), true)
// L234
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 2), true)
// L235
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 3), true)
// L236
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 6), true)
// L237
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BarracksAddOns", 1), true)
// L238
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BarracksAddOns", 0), true)
// L239
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 4), false)
// L240
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 5), false)
// L241
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TerranBuild", 11), false)
// L495
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Stimpack", 0), true)
// L496
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("SiegeMode", 0), true)
// L497
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Unsiege", 0), true)
// L503
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), false)
// L964
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L986
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L1132
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L1154
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L1302
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L1325
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MedivacTransport", 0), true)
// L208
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("CommandCenterLiftOff", 0), false)
// L209
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("OrbitalLiftOff", 0), false)
// L210
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("CalldownMULE", 0), false)
// L211
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("SupplyDrop", 0), false)
// L212
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BansheeCloak", 0), true)
// L541
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("TemporalRift", 0), false)
// L543
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowUltraliskDown", 0), true)
// L544
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowZerglingDown", 0), true)
// L545
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowRoachDown", 0), true)
// L546
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowInfestorDown", 0), true)
// L547
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowHydraliskDown", 0), true)
// L548
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowBanelingDown", 0), true)
// L549
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("NeuralParasite", 0), true)
// L550
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("UpgradeToGreaterSpire", 0), false)
// L551
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("MorphToBroodLord", 0), false)
// L208
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("ArchonWarp", 0), true)
// L209
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("PsiStorm", 0), true)
// L210
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("Mergeable", 0), true)
// L213
TechTreeAbilityAllow(gv_pLAYER_COMPUTER1, AbilityCommand("Yamato", 0), true)
// L217
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Yamato", 0), true)
// L221
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("evolutionchamberresearch", 10), true)
// L222
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowInfestorDown", 0), true)
// L223
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("NeuralParasite", 0), true)
// L225
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("InfestedTerrans", 0), true)
// L226
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("BurrowInfestorUp", 0), true)
// L515
TechTreeAbilityAllow(gv_pLAYER_06_INFESTORS, AbilityCommand("NeuralParasite", 0), false)
// L482
TechTreeAbilityAllow(gv_pLAYER06_TERRORFLEET, AbilityCommand("GravitonBeam", 0), true)
// L906
TechTreeAbilityAllow(gv_p02_ZERG_EAST, AbilityCommand("BurrowInfestedCivilianDown", 0), false)
// L907
TechTreeAbilityAllow(gv_p03_VIROPHAGE, AbilityCommand("BurrowInfestedCivilianDown", 0), false)
// L908
TechTreeAbilityAllow(gv_p04_ZERG_NORTH, AbilityCommand("BurrowInfestedCivilianDown", 0), false)
// L909
TechTreeAbilityAllow(gv_p07_ZERG_INFESTED, AbilityCommand("BurrowInfestedCivilianDown", 0), false)
// L910
TechTreeAbilityAllow(gv_p08_ZERG_SOUTH, AbilityCommand("BurrowInfestedCivilianDown", 0), false)
// L911
TechTreeAbilityAllow(gv_p02_ZERG_EAST, AbilityCommand("BurrowInfestedTerranCampaignDown", 0), false)
// L912
TechTreeAbilityAllow(gv_p03_VIROPHAGE, AbilityCommand("BurrowInfestedTerranCampaignDown", 0), false)
// L913
TechTreeAbilityAllow(gv_p04_ZERG_NORTH, AbilityCommand("BurrowInfestedTerranCampaignDown", 0), false)
// L914
TechTreeAbilityAllow(gv_p07_ZERG_INFESTED, AbilityCommand("BurrowInfestedTerranCampaignDown", 0), false)
// L915
TechTreeAbilityAllow(gv_p08_ZERG_SOUTH, AbilityCommand("BurrowInfestedTerranCampaignDown", 0), false)
// L328
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("WraithCloak", 0), true)
// L329
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("WraithCloak", 1), true)
// L800
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("OdinNuclearStrike", 0), false)
// L1141
TechTreeAbilityAllow(auto8ADC11E5_var, AbilityCommand("BansheeCloak", 0), false)
// L1421
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("TossGrenade", 0), true)
// L1496
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("ExperimentalPlasmaGun", 0), true)
// L1572
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("TheMorosDevice", 0), true)
// L511
TechTreeAbilityAllow(gv_pLAYER01_USER, AbilityCommand("TerranBuild", 4), false)
// L512
TechTreeAbilityAllow(gv_pLAYER01_USER, AbilityCommand("TerranBuild", 5), false)
// L515
TechTreeAbilityAllow(gv_pLAYER01_USER, AbilityCommand("TerranBuild", 5), true)
// L517
TechTreeAbilityAllow(gv_pLAYER01_USER, AbilityCommand("TerranBuild", 6), true)
// L518
TechTreeAbilityAllow(gv_pLAYER01_USER, AbilityCommand("BarracksReactorMorph", 0), true)
// L318
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("D8Charge", 0), true)