# Upgrade Is Allowed For Player

GrammarinUpgrade is allowed for player inPlayer
FlagsNative | Function

Returns true if an upgrade is allowed for the specified player. Use “Allow/Disallow Upgrade For Player” to modify this.

# Arguments

  • int — Player
  • string [ gamelink::Upgrade ] — Upgrade

Returns — bool

native bool TechTreeUpgradeIsAllowed(
	int player,
	string upgradeType,
);

Category: Tech Tree / Individual Restrictions

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L1506
TechTreeUpgradeIsAllowed(1, "ProtossAirWeaponsLevel1")

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L3477
TechTreeUpgradeIsAllowed(1, "ProtossAirWeaponsLevel1")