~~NOTOC~~ <=[[4rpl:start| Index]] :!: Available in version 1.3 and later. ====== GetUnitType ====== GetUnitType(<-unitUID) ===== Description ===== Returns the string type of the unit. For custom units, this is the CMOD UID. For built in units, it is the string unit type (like "cannon"). In both cases, the string can be passed to [[CreateUnit]] and other APIs that take units. See [[Unit Types]] for the list of Unit Names for built in units. ===== Examples ===== trace(GetUnitType(self)) <=[[4rpl:start| Index]]