User Tools

Site Tools


crpl:docs:getunittype

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Unit Commands

GetUnitType

ArgumentsResultNotation
Unit UID Unit name i1 – s1

Description

Returns the name of the unit type. Names are NOT case sensitive.

  • CRPLCORE
  • COLLECTOR
  • RELAY
  • REACTOR
  • OREMINE
  • SIPHON
  • TERP
  • GUPPY
  • PULSECANNON
  • MORTAR
  • STRAFER
  • BOMBER
  • SPRAYER
  • NULLIFIER
  • SHIELD
  • BEAM
  • SNIPER
  • FORGE
  • BERTHA
  • POWERZONE
  • OREDEPOSIT
  • ENERGYDEPOSIT0
  • ENERGYDEPOSIT1
  • ENERGYDEPOSIT2
  • ENERGYDEPOSIT3
  • SHIELDKEY

Examples

:GetUnitTypeCount
	->unitType
	0 ->count
	do (GetUnitsInRange(0 0 9999) 0)
		->unitUID
		if (GetUnitType(<-unitUID) eq(<-unitType))
			<-count add(1) ->count
		endif
	loop
	<-count
crpl/docs/getunittype.1367576918.txt.gz · Last modified: 2014/10/01 15:02 (external edit)