User Tools

Site Tools


4rpl:commands:getunitconstructingdata

Index

GetUnitConstructingData

GetUnitConstructingData(<-Unit) ->constructingDataVector

Description

Pushes a vector to the stack with data related to the constructing state of the specified unit.
The .0 position in the vector contains the current amount of build resources in the unit.
The .1 position in the vector contains the max amount of build resources in the unit. When current == max, the unit will be constructed.
The .2 position in the vector contains the type of resource used to build the unit.
If the unit is not in the building state, the .0 and .1 values will be -1; These are the resource types:

  • 0 = Energy
  • 1 = Anticreeper
  • 2 = Arg
  • 3 = Liftic

Examples

GetUnitConstructingData(self) ->constructingData

Index

4rpl/commands/getunitconstructingdata.txt · Last modified: 2021/01/08 11:01 by 127.0.0.1