This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
4rpl:commands:getbuildunit [2021/03/08 20:13] – created virgilw | 4rpl:commands:getbuildunit [2023/11/16 16:27] – [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): | ||
+ | |||
+ | Example: When the player selects the Cannon from the weapons build tab, " | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> |