# Unit Is Allowed For Player

GrammarinUnit is allowed for player inPlayer
FlagsNative | Function

Returns true if a unit is allowed for the specified player. Use “Allow/Disallow Unit For Player” to modify this.

# Arguments

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

Returns — bool

native bool TechTreeUnitIsAllowed(
	int player,
	string unitType,
);

Category: Tech Tree / Individual Restrictions

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L6023
TechTreeUnitIsAllowed(lp_p, lv_uT)