User Tools

Site Tools


crpl:docs:getunittype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:getunittype [2013/10/28 18:03] ThirdPartycrpl:docs:getunittype [2021/02/05 11:44] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]]
 =====  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   * COMMANDNODE
-  * CRPLCORE+
   * COLLECTOR   * COLLECTOR
   * RELAY   * RELAY
Line 18: Line 20:
   * SIPHON   * SIPHON
   * TERP   * TERP
-  * GUPPY [see note] +  * GUPPY 
-  * PULSECANNON+  * GUPPYAIR (as of 1.15) 
 +  * SHIELD 
 + 
 +  * PULSECANNON (use CANNON for Tech Artifacts)
   * MORTAR   * MORTAR
-  * STRAFER [see note] +  * STRAFER 
-  * BOMBER [see note]+  * STRAFERAIR (as of 1.15) 
 +  * 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 FIXME +  * RESOURCEPACK 
-  * ENERGYDEPOSIT1 FIXME +  * TOTEM 
-  * ENERGYDEPOSIT2 FIXME +  * AOO 
-  * ENERGYDEPOSIT3 FIXME+  * ANTIEMITTER 
   * SHIELDKEY   * SHIELDKEY
   * TECHARTIFACT   * TECHARTIFACT
   * MESSAGEARTIFACT   * MESSAGEARTIFACT
  
-  * THOR 
   * CRPLCORE   * CRPLCORE
-  * RESOURCEPACK 
-  * TOTEM 
   * EMITTER   * EMITTER
   * SPORETOWER   * SPORETOWER
-  * RUNNERNEST [see note]+  * RUNNERNEST 
 +  * RUNNER (as of 1.15)
   * AETOWER   * AETOWER
   * INHIBITOR   * INHIBITOR
  
-Noteflying guppies, strafers, bombers, and runners currently return an empty string as their unit type.  This may be a bug, so probably shouldn't be relied upon.+**Notes:** 
 +  * COMMANDNODE, RUNNER, BOMBERAIR, STRAFERAIR and GUPPYAIR **cannot** be created using [[crpl:docs:createunit|CreateUnit]]. 
 +  * [[crpl:docs:settechartifacttype|Tech Artifacts]] can only be player unit types excluding the AIR-suffix units. 
 + 
 +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 ===
crpl/docs/getunittype.1382997819.txt.gz · Last modified: 2014/10/01 15:02 (external edit)