This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:getunitcanbuild [2021/01/24 19:55] – added get/set tabs Sanian | 4rpl:commands:getunitcanbuild [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Description ===== | ===== Description ===== | ||
- | Returns a boolean indicating if the specified unit can be built. This call controls the visibility of the build buttons in the left build pane. | + | Returns a boolean indicating if the specified unit can be built. This call controls the visibility of the build buttons in the left build pane. Unit type is a subset of [[Unit Types]] |
The unitType can be one of:\\ | The unitType can be one of:\\ | ||
* riftlab | * riftlab | ||
Line 37: | Line 38: | ||
* beacon | * beacon | ||
+ | Avoid using this call frequently. It is very CPU intensive and should only be declared at the most minimalistic applications. Never use this more than you need to for as infrequent as possible. | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> |