User Tools

Site Tools


4rpl:commands:getbuildunit

This is an old revision of the document!


Index

:!: Available in version 1.4 and later.

GetBuildUnit

GetBuildUnit ->selectBuildUnit

Description

Returns the 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 build-in unit type. If no unit is selected in the build menu, an empty string is returned.

Example: When the player selects the Cannon from the weapons build tab, “Cannon” will be returned by this API.

Examples

print(GetBuildUnit)

Index

4rpl/commands/getbuildunit.1662842763.txt.gz · Last modified: 2022/09/10 16:46 by Vertu