User Tools

Site Tools


4rpl:commands:unit_types

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
4rpl:commands:unit_types [2021/03/26 10:12] Karsten754rpl:commands:unit_types [2024/04/09 09:30] (current) – renamed "delegate" to "inhibitor" Karsten75
Line 1: Line 1:
-~~NOTOC~~ 
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
 ====== Unit Types  ====== ====== Unit Types  ======
  
- Note: [[Unit_types#titan_units|Titan Units]] are a special case + Notes: 
 +    *  [[Unit_types#titan_units|Titan Units]] are a special case. 
 +    * Many of these Unit Types have an API to allow inspection or setting some values: [[getunitsettings|UnitSettings]] 
 +    * There exists Sub-Units. These are units created by a "parent" unit and possess an empty String (**""**) for their Unit Type. Sub-Units can be easily detected by the [[4rpl:commands:getunits|GetUnits]] API.
  
 +===== Unit Types =====
   * "acbomberpad"    * "acbomberpad" 
   * "airsac"    * "airsac" 
Line 18: Line 20:
   * "collectorpanel3"    * "collectorpanel3" 
   * "collectorpanel5"    * "collectorpanel5" 
-  * "conversion" +  * "conversion" [(Creating this spawns the corresponding Orbital Strike)]
   * "crazonium"    * "crazonium" 
   * "crystal"    * "crystal" 
-  * "damper" +  * "damper" [(#1)]
   * "darktower"    * "darktower" 
-  * "delegate"  
   * "egg"    * "egg" 
   * "emitter"    * "emitter" 
Line 34: Line 35:
   * "holdbase"    * "holdbase" 
   * "infocache"    * "infocache" 
 +  * "inhibitor"[(Internal name for "delegate")]
   * "microrift"    * "microrift" 
   * "miner"    * "miner" 
Line 45: Line 47:
   * "pterosaur"    * "pterosaur" 
   * "pylon"    * "pylon" 
-  * "rain" +  * "rain" [(#1)]
   * "resourceblue"    * "resourceblue" 
   * "resourcered"    * "resourcered" 
Line 52: Line 54:
   * "shield"    * "shield" 
   * "shrapnel"    * "shrapnel" 
-  * "singularity" +  * "singularity" [(#1)]
   * "skimmer"    * "skimmer" 
   * "skimmerfactory"    * "skimmerfactory" 
Line 65: Line 67:
   * "ultrac"    * "ultrac" 
   * "wall"    * "wall" 
 +===== Sub-Units (Official names) =====
 +Not all vanilla units have a unit type. All the units mentioned here have an empty String (**""**) for their Unit Type and are created as (figuratively) child units but are still a unique unit with a detectable UID.\\
 +To search for these units, you must use [[4rpl:commands:getunitofficialname|GetUnitOfficialName]]
 +  * "ACBomber"
 +  * "Rocket"
 +  * "Bomber" <fs small>(Same as the official name of the bomberpad)</fs>
 +  * "DeliveryDrone"
 +  * "GreenarDrone"
 +  * "TerpDrone"
 +All sub units below here are not impervious and are never built (count as under construction).
 +  * "Shot(Clone)" {Cannon projectile}
 +  * "MortarShot(Clone)" {Mortar projectile}
 +  * "ACShot(Clone)" {Sparyer projectile}
 +  * "Missile(Clone)" {Missile launcher projectile}
 +  * "Bomb(Clone)" {Bomber projectile}
 +  * "ACBomb(Clone)" {AC-Bomber projectile}
  
-=== Titan Units ===+**Note:** The created crystals of the Greenar Mother (known as Xstals) are not Sub-Units of the Greenar Mother. They do not have a UID or at least, don't increase it. It is possible they internally share the UID of the Greenar Mother that created them.\\ 
 +Without a UID, they are undetectable with current API's, making the greenar refinery special and currently impossible to recreate within a CPACK. 
 + 
 + 
 +===== Custom Units ===== 
 +Each custom unit (CMOD) has a GUID that can be used when a `unit type` is required. The GUID is available in the CPACK editor and will not change unless the unit is "branched" to a new CPACK. (Reusing the same CPACK in multiple maps will NOT change the GUID.) 
 + 
 +===== Titan Units =====
 The Titan units are a special case of Custom units and have to be retrieved by their CMOD GUID The Titan units are a special case of Custom units and have to be retrieved by their CMOD GUID
  
Line 72: Line 97:
 Bertha: b2d47782-ebe0-4508-ace3-6ae4503b62fc \\ Bertha: b2d47782-ebe0-4508-ace3-6ae4503b62fc \\
 Sweeper: c5b44bd0-1518-4091-9f15-36c919bc37c7 \\ Sweeper: c5b44bd0-1518-4091-9f15-36c919bc37c7 \\
 +
 +===== Core Units =====
 +Rift Lab: [[4rpl:commands:getriftlab|GetRiftLab]]\\ 
 +Factory: [[4rpl:commands:getfactory|GetFactory]]\\ 
 +ERN Portal: [[4rpl:commands:geternportal|GetERNPortal]]
 +
 +
 +:!: Sub-Units can easily be detected by the [[4rpl:commands:getunits|GetUnits]] API unwantedly and using the API [[4rpl:commands:getunittype|GetUnitType]] to identify the detected UID's within the returned list will return an empty String upon identifying a Sub-Unit, which can be quite unhelpful (though it can still be used to identify if the UID is any Sub-Unit). The API [[4rpl:commands:getunitofficialname|GetUnitOfficialName]] is only way to identify a specific Sub-Unit using a unit UID.
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/unit_types.1616767955.txt.gz · Last modified: 2021/03/26 10:12 by Karsten75