This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:getbuildunit [2021/03/09 01:13] – created virgilw | 4rpl:commands:getbuildunit [2025/08/13 15:45] (current) – [Description] kalli | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| < | < | ||
| - | :!: Available in version 1.X and later. | + | :!: Available in version 1.4 and later. |
| ====== GetBuildUnit ====== | ====== GetBuildUnit ====== | ||
| GetBuildUnit -> | GetBuildUnit -> | ||
| ===== Description ===== | ===== Description ===== | ||
| - | When building a unit, returns the string for the unit' | + | Returns |
| + | This command does not use the same unit_types from getunitsbytype or getunits functions, but older names. List of unit types according to getbuildunit (case-sensitive): | ||
| + | |||
| + | While the Rift Lab has no unit type according to GetUnitType, | ||
| + | |||
| + | Microrift with a lower case r for rift. | ||
| + | Reactor = miner. | ||
| + | SuperTower = pylon. | ||
| + | ERNInterface = ernportal. | ||
| + | DeliveryPad = porter. | ||
| + | Chronat = beacon. | ||
| + | |||
| + | Example: When the player selects the Cannon from the weapons build tab, " | ||
| ===== Examples ===== | ===== Examples ===== | ||
| <code 4rpl> | <code 4rpl> | ||