<- CRPL reference <- Unit Commands

SetTechArtifactType

Arguments Result Notation
Unit UID, Tech typeNone i s --

Description

SetTechArtifactType allows you to set which technology is unlocked by a tech artifact unit. It has no effect if the unit is not a tech artifact. Tech types are derived from units types, a list of all unit types can be found here.

Examples

# Create an ore mine tech artifact at position (x,y)
CreateUnit("TECHARTIFACT" <-x <-y) ->unit
SetTechArtifactType(<-unit "OREMINE")