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/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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): | ||
+ | |||
+ | 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> |