User Tools

Site Tools


crpl:docs:gettechartifacttype

<- 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
crpl/docs/gettechartifacttype.txt · Last modified: 2021/02/05 11:44 by Karsten75