This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:getunittype [2013/05/03 10:28] – jmaps | crpl:docs:getunittype [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| =====  GetUnitType  | =====  GetUnitType  | ||
| Line 8: | Line 8: | ||
| === Description === | === Description === | ||
| - | Returns the name of the unit type. Names are NOT case sensitive. | + | Returns the name of the unit type as a string. Names are NOT case sensitive. | 
| + | |||
| + | ==== Unit Types ==== | ||
| + | |||
| + | * COMMANDNODE | ||
| - | * CRPLCORE | ||
| * COLLECTOR | * COLLECTOR | ||
| * RELAY | * RELAY | ||
| Line 18: | Line 21: | ||
| * TERP | * TERP | ||
| * GUPPY | * GUPPY | ||
| - | * PULSECANNON | + |    | 
| + | * SHIELD | ||
| + | |||
| + |    | ||
| * MORTAR | * MORTAR | ||
| * STRAFER | * STRAFER | ||
| + | * STRAFERAIR (as of 1.15) | ||
| * BOMBER | * BOMBER | ||
| + | * BOMBERAIR (as of 1.15) | ||
| * SPRAYER | * SPRAYER | ||
| * NULLIFIER | * NULLIFIER | ||
| - | * SHIELD | ||
| * BEAM | * BEAM | ||
| * SNIPER | * SNIPER | ||
| + | |||
| * FORGE | * FORGE | ||
| * BERTHA | * BERTHA | ||
| + | * THOR | ||
| + | |||
| * POWERZONE | * POWERZONE | ||
| * OREDEPOSIT | * OREDEPOSIT | ||
| - | * ENERGYDEPOSIT0 | + | * RESOURCEPACK | 
| - | * ENERGYDEPOSIT1 | + | * TOTEM | 
| - | * ENERGYDEPOSIT2 | + | * AOO | 
| - | * ENERGYDEPOSIT3 | + | * ANTIEMITTER | 
| * SHIELDKEY | * SHIELDKEY | ||
| + | * TECHARTIFACT | ||
| + | * MESSAGEARTIFACT | ||
| + | |||
| + | * CRPLCORE | ||
| + | * EMITTER | ||
| + | * SPORETOWER | ||
| + | * RUNNERNEST | ||
| + | * RUNNER (as of 1.15) | ||
| + | * AETOWER | ||
| + | * INHIBITOR | ||
| + | |||
| + | **Notes:** | ||
| + |   * COMMANDNODE, | ||
| + |   * [[crpl: | ||
| + | |||
| + | Flying guppies, strafers, bombers, and runners will return an empty string as their unit type if your version of CW3 is 1.14 or lower. | ||
| === Examples === | === Examples === | ||