<- CRPL reference <- Unit Commands
| Arguments | Result | Notation |
|---|---|---|
| Unit UID | Tech type | i -- s |
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.
# 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