4rpl:commands:getbuildunit
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:getbuildunit [2025/02/14 14:57] – external edit 127.0.0.1 | 4rpl:commands:getbuildunit [2025/08/13 15:45] (current) – [Description] kalli |
---|
Returns the [[4rpl:commands:unit_types|unit type]] of the unit currently selected in the build menu. For custom units, the string is the CMOD GUID. For built in units it is the built-in [[4rpl:commands:unit_types|unit type]]. If no unit is selected in the build menu, an empty string is returned. | Returns the [[4rpl:commands:unit_types|unit type]] of the unit currently selected in the build menu. For custom units, the string is the CMOD GUID. For built in units it is the built-in [[4rpl:commands:unit_types|unit type]]. If no unit is selected in the build menu, an empty string is returned. |
| |
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): "Tower SuperTower Reactor GreenarRefinery Cannon Mortar Sprayer Sniper MissileLauncher Nullifier RocketPad Microrift Shield Factory Terp ERNInterface Platform DeliveryPad Runway BomberPad ACBomberPad Chronat". | 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): "Tower SuperTower Reactor GreenarRefinery Cannon Mortar Sprayer Sniper MissileLauncher Nullifier RocketPad Microrift Shield Factory Terp ERNInterface Platform DeliveryPad Runway BomberPad ACBomberPad Chronat". |
| |
| While the Rift Lab has no unit type according to GetUnitType, it has a GetBuildType: CommandBase. |
| |
Microrift with a lower case r for rift. | Microrift with a lower case r for rift. |
4rpl/commands/getbuildunit.1739545024.txt.gz · Last modified: 2025/02/14 14:57 by 127.0.0.1