User Tools

Site Tools


4rpl:commands:getunitbuildlimit

Index

:!: Available in version 1.3 and later.

GetUnitBuildLimit

GetUnitBuildLimit(<-unitType) ->unitBuildLimit

Description

Returns the build limit for the specified unit type. If the build limit is unlimited, -1 is returned. The only types that are supported are the built in unit types that the player can build, and custom units. See GetUnitType. For custom units, specify the CMod GUID for the type.

Examples

Print(GetUnitBuildLimit("sniper"))

Index

4rpl/commands/getunitbuildlimit.txt · Last modified: 2021/04/27 12:30 by durikkan