<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] ===== GetTechArtifactType ===== ^ Arguments ^ Result ^ Notation ^ |Unit UID|Tech type |%%i -- s %%| === Description === GetTechArtifactType returns a string indicating which technology is unlocked by a given tech artifact unit. See [[crpl:docs: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