User Tools

Site Tools


4rpl:commands:getbuildunit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:getbuildunit [2023/11/16 16:27] – [Description] Kalli4rpl:commands:getbuildunit [2023/11/16 16:29] (current) – [Description] Kalli
Line 9: Line 9:
 Returns the [[4rpl:commands:unit_types|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 built-in [[4rpl:commands:unit_types|unit type]]. If no unit is selected in the build menu, an empty string is returned. Returns the [[4rpl:commands:unit_types|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 built-in [[4rpl:commands:unit_types|unit type]]. If no unit is selected in the build menu, an empty string is returned.
  
-This command does not use the same unit_types from getunitsbytype or getunits functions, but older names. List of unit types according to getbuildunit (case-sensitive): "Tower SuperTower Reactor GreenarRefinery Cannon Mortar Sprayer Sniper MissileLauncher Nullifier RocketPad Microrift Shield Factory Terp ERNInterface Platform DeliveryPad Runway BomberPad ACBomberPad Chronat". Microrift with a lower case r for rift.+This command does not use the same unit_types from getunitsbytype or getunits functions, but older names. List of unit types according to getbuildunit (case-sensitive): "Tower SuperTower Reactor GreenarRefinery Cannon Mortar Sprayer Sniper MissileLauncher Nullifier RocketPad Microrift Shield Factory Terp ERNInterface Platform DeliveryPad Runway BomberPad ACBomberPad Chronat" 
 + 
 +Microrift with a lower case r for rift
 +Reactor = miner. 
 +SuperTower = pylon. 
 +ERNInterface = ernportal. 
 +DeliveryPad = porter. 
 +Chronat = beacon.
  
 Example: When the player selects the Cannon from the weapons build tab, "Cannon" will be returned by this API. Example: When the player selects the Cannon from the weapons build tab, "Cannon" will be returned by this API.
4rpl/commands/getbuildunit.txt · Last modified: 2023/11/16 16:29 by Kalli