User Tools

Site Tools


4rpl:commands:getunitcanbuild

This is an old revision of the document!


Index

GetUnitCanBuild

GetUnitCanBuild(<-unitType) ->canBuild

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. Unit type is a subset of Unit Types and must be represented on the build pane.

The unitType can be one of:

  • riftlab
  • factory
  • ernportal
  • tower
  • pylon
  • miner
  • greenarrefinery
  • terp
  • porter
  • cannon
  • mortar
  • sprayer
  • sniper
  • missilelauncher
  • nullifier
  • runway
  • bomberpad
  • acbomberpad
  • rocketpad
  • platform
  • shield
  • microrift
  • beacon

Examples

   if (GetUnitCanBuild("beacon"))
      Print("The Player can build beacons")
   endif

Index

4rpl/commands/getunitcanbuild.1612295265.txt.gz · Last modified: 2025/02/14 14:56 (external edit)