# Set Tech Flag State

Grammar — Set tech flag state to state for player player at index index with count count and unit type what
FlagsNative | Action

Sets the state of a flag for a player at the specified index based on whether the number of units of the type specified in the What parameter with the Tech Tree Count Type specified in the State parameter, is greater than or equal to the Count parameter.

# Arguments

  • int — Player
  • int — Index
  • int — Count
  • string — What
  • int — State

Returns — void

native void AITechFlag(
	int player,
	int index,
	int count,
	string what,
	int countMask,
);

Category: AI Advanced / Utility / Actions

# Examples

— None found —