User Tools

Site Tools


4rpl:commands:getunittype

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))

Index

4rpl/commands/getunittype.txt · Last modified: 2021/01/25 14:09 by Karsten75