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 revisionBoth sides next revision
4rpl:commands:unit_types [2022/04/09 15:11] – link back to get/setUnitsettings Karsten754rpl:commands:unit_types [2022/04/28 20:17] – Mention of Sub-Units, completing (at least more so) a full list of all unique vanilla units. Vertu
Line 5: Line 5:
  
  Notes:  Notes:
-    *  [[Unit_types#titan_units|Titan Units]] are a special case +    *  [[Unit_types#titan_units|Titan Units]] are a special case. 
-    * Many of these units have an API to allow inspection or setting some values: [[getunitsettings|UnitSettings]]+    * 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 ==== ==== Unit Types ====
Line 67: Line 68:
   * "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.
 +  * "ACBomber"
 +  * "Rocket"
 +  * "Bomber" <fs small>(Same as the official name of the bomberpad)</fs>
 +  * "DeliveryDrone"
 +  * "GreenarDrone"
 +  * "TerpDrone"
 +
 +**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 greenarrefinery special and currently impossible to recreate within a CPACK.
 +
  
 ==== Custom Units ==== ==== Custom Units ====
Line 82: Line 95:
 Factory: [[4rpl:commands:getfactory|GetFactory]]\\  Factory: [[4rpl:commands:getfactory|GetFactory]]\\ 
 ERN Portal: [[4rpl:commands:geternportal|GetERNPortal]] 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.txt · Last modified: 2024/04/09 09:30 by Karsten75