Table of Contents

<- CRPL reference <- Unit Commands

GetTechArtifactType

Arguments Result Notation
Unit UIDTech type i -- s

Description

GetTechArtifactType returns a string indicating which technology is unlocked by a given tech artifact unit. See SetTechArtifactType for the list of return values. It returns “UNKNOWN” if the unit is not a tech artifact.

Unit Constants

Examples

# Trace the tech type of each tech artifact in range
GetAllUnitsInRange(CurrentCoords 2 1)
do(0)
	->unit
	GetUnitType(<-unit)
	if("TECHARTIFACT" eq)
		Trace(GetTechArtifactType(<-unit))
	endif
loop