Jump to content
hdparm

[Lua] [API] Element public members and return values of some functions

Recommended Posts

This is the result of running the globals dumping script in-game on constructs that had various elements attached to them.

 

Some exposed functions were called with pcall. The first value indicates whether the call was successful, the second is the actual function return value. All functions that return a vector return it as a table, not as a vec3 structure. Usually such functions will be called like this: local worldGravity = vec3(core.getWorldGravity()). Boolean values are returned as a number 0 or 1, and not as true or false.

 

Element events are not listed here, as they cannot be detected by the dump.lua script. See the codex in-game (press F1) or outside the game (C:\ProgramData\Dual Universe\Game\documentation\web_codex.html) for event and function descriptions and other information.

 

Anti-Gravity Generator

r0.21.0

Spoiler

activate()                                        function
deactivate()                                      function
export                                            table
    [same functions]
getBaseAltitude()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1000.0
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"antiGPower\":0.0,\"antiGravityField\":0.0,\"baseAltitude\":1000.0,\"helperId\":\"antigravity_generator\",\"name\":\"Anti-gravity generator s [115]\",\"showError\":true,\"type\":\"antigravity_generator\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e26454643"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "AntiGravityGeneratorUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 43117.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 115
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 27134.86
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 43117.0
getSignalIn(plug)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "antigravity_generator"
hide()                                            function
load()                                            function
setBaseAltitude(altitude)                         function
setSignalIn(plug,state)                           function
show()                                            function
toggle()                                          function
unit                                              table
    [reference to self]

 

 

Control unit

r0.21.2

Programming board exposes fewer functions compared to cockpit and seat. The control unit has references to linked elements, which are also available as local variables in each event handler. Event handlers defined in the script editor also get placed inside it. Here the control unit is a hovercraft seat that has 2 linked fuel tanks, a radar and a core.

Spoiler

activateGroundEngineAltitudeStabilization(targetAltitude)function
cancelCurrentControlMasterMode()                  function
computeGroundEngineAltitudeStabilizationCapabilities()function
container_1                                       table
    [slot skipped]
container_2                                       table
    [slot skipped]
core                                              table
    [slot skipped]
deactivateGroundEngineAltitudeStabilization()     function
exit()                                            function
export                                            table
    [same functions]
extendLandingGears()                              function
getAtmosphereDensity()                            function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.97397923469543
getAxisCommandValue(axis)                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getClosestPlanetInfluence()                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.99910169839859
getControlMasterModeId()                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"acceleration\":0.0,\"airDensity\":0.97397923469543457,\"airResistance\":0.0,\"atmoThrust\":0.0,\"controlData\":{\"axisData\":[{\"commandType\":3,\"commandValue\":0.0,\"speed\":0.0},{\"commandType\":3,\"commandValue\":0.0,\"speed\":0.0},{\"commandType\":3,\"commandValue\":0.0,\"speed\":0.0}],\"currentMasterMode\":0,\"masterModeData\":[{\"name\":\"Travel Mode\"},{\"name\":\"Cruise Control\"}]},\"controlMasterModeId\":0,\"elementId\":\"35758759\",\"helperId\":\"cockpit\",\"name\":\"Hovercraft seat controller [13]\",\"showHasBrokenFuelTank\":false,\"showOutOfFuel\":false,\"showOverload\":false,\"showScriptError\":false,\"showSlowDown\":false,\"spaceThrust\":0.0,\"speed\":0.0,\"type\":\"cockpit\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e35758759"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "CockpitHovercraftUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 187.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 13
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 110.33
getMasterPlayerId()                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 19884
getMasterPlayerRelativePosition()                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 3.7252902984619e-09
            3                                     number: -2.7939677238464e-09
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 187.0
getOwnerRelativePosition()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 3.7252902984619e-09
            3                                     number: -2.7939677238464e-09
getSurfaceEngineAltitudeStabilization()           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -5.1825836503487e-06
getThrottle()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -0.70176661014557
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "cockpit"
hide()                                            function
isAnyHeadlightSwitchedOn()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isAnyLandingGearExtended()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isMouseControlActivated()                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isMouseDirectControlActivated()                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isMouseVirtualJoystickActivated()                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isRemoteControlled()                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
library                                           table
    [slot skipped]
load()                                            function
radar_1                                           table
    [slot skipped]
retractLandingGears()                             function
setAxisCommandValue(axis,commandValue)            function
setEngineCommand(taglist,acceleration,angularAcceleration,keepForceCollinearity,keepTorqueCollinearity,priority1SubTags,priority2SubTags,priority3SubTags,toleranceRatioToStopCommand)function
setEngineThrust(taglist,thrust)                   function
setTimer(timerTagId,period)                       function
setupAxisCommandProperties(axis,commandType,targetSpeedRanges)function
show()                                            function
stopTimer(timerTagId)                             function
switchOffHeadlights()                             function
switchOnHeadlights()                              function
system                                            table
    [slot skipped]
system_update1()                                  function
unit                                              table
    [reference to self]
unit_start0()                                     function

 


Core

r0.22.4

Static cores have fewer functions compared to dynamic cores.

Spoiler

deleteSticker(index)                              function
export                                            table
    [same functions]
g(msg)                                            function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 4.9397330284119
getAcceleration()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getAltitude()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 35.87035063302
getAngularAcceleration()                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getAngularVelocity()                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getConstructCrossSection()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 3.625
getConstructIMass()                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 19146.763020833
getConstructId()                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1321581
getConstructMass()                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 7687.710946
getConstructOrientationForward()                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -8.7422797889758e-08
            2                                     number: 1.0
            3                                     number: 1.5099581673894e-07
getConstructOrientationRight()                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 1.0
            2                                     number: 8.7422783678903e-08
            3                                     number: 8.7422783678903e-08
getConstructOrientationUp()                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -8.7422769468049e-08
            2                                     number: -1.5099581673894e-07
            3                                     number: 1.0
getConstructWorldOrientationForward()             function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.60383615040077
            2                                     number: -0.043547852247821
            3                                     number: 0.79591804554696
getConstructWorldOrientationRight()               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.78323524577452
            2                                     number: 0.15306573415678
            3                                     number: 0.60258895646606
getConstructWorldOrientationUp()                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.14806920999814
            2                                     number: 0.987256043304
            3                                     number: -0.058318430192143
getConstructWorldPos()                            function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -94125600.908175
            2                                     number: 12826252.493869
            3                                     number: -3640182.4676307
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"altitude\":35.87035063302028,\"gravity\":4.9397330284118652,\"helperId\":\"core\",\"name\":\"Dynamic core unit xs [1]\",\"type\":\"core\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e35758758"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "CoreUnitDynamic"
getElementHitPoints(uid)                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementHitPointsById(localId)                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementIdList()                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 75
            10                                    number: 93
            11                                    number: 97
            12                                    number: 92
            13                                    number: 91
            14                                    number: 90
            15                                    number: 89
            16                                    number: 88
            17                                    number: 87
            18                                    number: 72
            19                                    number: 71
            2                                     number: 95
            20                                    number: 69
            21                                    number: 70
            22                                    number: 76
            23                                    number: 77
            24                                    number: 78
            25                                    number: 81
            26                                    number: 82
            27                                    number: 83
            28                                    number: 84
            29                                    number: 59
            3                                     number: 79
            30                                    number: 58
            31                                    number: 1
            32                                    number: 13
            33                                    number: 98
            34                                    number: 14
            4                                     number: 80
            5                                     number: 94
            6                                     number: 86
            7                                     number: 85
            8                                     number: 74
            9                                     number: 73
getElementList()                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 75
            10                                    number: 93
            11                                    number: 97
            12                                    number: 92
            13                                    number: 91
            14                                    number: 90
            15                                    number: 89
            16                                    number: 88
            17                                    number: 87
            18                                    number: 72
            19                                    number: 71
            2                                     number: 95
            20                                    number: 69
            21                                    number: 70
            22                                    number: 76
            23                                    number: 77
            24                                    number: 78
            25                                    number: 81
            26                                    number: 82
            27                                    number: 83
            28                                    number: 84
            29                                    number: 59
            3                                     number: 79
            30                                    number: 58
            31                                    number: 1
            32                                    number: 13
            33                                    number: 98
            34                                    number: 14
            4                                     number: 80
            5                                     number: 94
            6                                     number: 86
            7                                     number: 85
            8                                     number: 74
            9                                     number: 73
getElementMass(uid)                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementMassById(localId)                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementMaxHitPoints(uid)                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementMaxHitPointsById(localId)               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementName(uid)                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementNameById(localId)                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementPositionById(localId)                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getElementRotationById(localId)                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
            4                                     number: 0.0
getElementTagsById(localId)                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "[]\n"
getElementType(uid)                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementTypeById(localId)                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 70.89
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getMaxKinematicsParametersAlongAxis(taglist,CRefAxis)function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
            4                                     number: 0.0
getVelocity()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "core"
getWorldAcceleration()                            function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWorldAirFrictionAcceleration()                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.0
            2                                     number: -0.0
            3                                     number: -0.0
getWorldAirFrictionAngularAcceleration()          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWorldAngularAcceleration()                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWorldAngularVelocity()                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWorldGravity()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.7103021837457
            2                                     number: -4.8668439210801
            3                                     number: 0.45854236016745
getWorldVelocity()                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getWorldVertical()                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.14379364509909
            2                                     number: -0.98524437000886
            3                                     number: 0.092827361240976
hide()                                            function
load()                                            function
moveSticker(index,x,y,z)                          function
rotateSticker(index,angle_x,angle_y,angle_z)      function
show()                                            function
spawnArrowSticker(x,y,z,orientation)              function
spawnNumberSticker(nb,x,y,z,orientation)          function
unit                                              table
    [reference to self]

 

 

Databank

r0.21.2

Spoiler

clear()                                           function
export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "DataBankUnit"
getFloatValue(key)                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 202
getIntValue(key)                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getKeys()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "[]"
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 17.09
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getNbKeys()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getStringValue(key)                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hasKey(key)                                       function
hide()                                            function
load()                                            function
setFloatValue(key,val)                            function
setIntValue(key,val)                              function
setStringValue(key,val)                           function
show()                                            function
unit                                              table
    [reference to self]

  

 

Elements with a state

r0.21.2

Detection areas, laser detectors and manual buttons expose the same functions. Their state is accessed using getState().

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "ManualButtonUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 196
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 13.27
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getSignalOut(plug)                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 

 

Elements with a toggle-able state

 r0.21.2

Force fields, ship doors, landing gears, manual switches and lights expose the same functions. The state is accessed using getState() and can be changed by activate(), deactivate() or toggle().

Spoiler

activate()                                        function
deactivate()                                      function
export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "ManualSwitchUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 197
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 13.27
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getSignalIn(plug)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getSignalOut(plug)                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
setSignalIn(plug,state)                           function
show()                                            function
toggle()                                          function
unit                                              table
    [reference to self]

 


Emitter

r0.21.2

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "EmitterUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 200
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 69.31
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getRange()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getSignalIn(plug)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
send(channel,message)                             function
setSignalIn(plug,state)                           function
show()                                            function
unit                                              table
    [reference to self]

  

 

Engine

r0.21.0

Space engines, atmospheric engines, ailerons, air-brakes, retro-engines and adjustors expose the same functions. Usually engines are controlled through unit.setEngineCommand and do not require linking to the control unit.

Spoiler

activate()                                        function
deactivate()                                      function
distance()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.36820710083824
export                                            table
    [same functions]
getCurrentFuelRate()                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 9e-09
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"currentMaxThrust\":59893.564930293411,\"currentThrust\":0.0,\"helperId\":\"engine_unit\",\"maxThrustBase\":60000.0,\"name\":\"Hover engine s [17]\",\"type\":\"engine_unit\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e5267951"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "Hovercraft"
getFuelConsumption()                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getFuelRate()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 9e-12
getFuelRateEfficiency()                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1.0
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 53.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 17
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 56.91
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 53.0
getMaxThrust()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 59893.564930293
getMaxThrustBase()                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 60000.0
getMaxThrustEfficiency()                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1.0
getMinThrust()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getObstructionFactor()                            function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getSignalIn(plug)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getT50()                                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getTags()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getThrust()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "engine_unit"
hasBrokenFuelTank()                               function
hide()                                            function
isObstructed()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isOutOfFuel()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
load()                                            function
setSignalIn(plug,state)                           function
setTags(tags)                                     function
setThrust(thrust)                                 function
show()                                            function
thrustAxis()                                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.11607212473206
            2                                     number: 0.82471327348847
            3                                     number: 0.55351176897345
toggle()                                          function
torqueAxis()                                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.15486745757987
            2                                     number: 1.147459492394
            3                                     number: -1.677198808322
unit                                              table
    [reference to self]

 

 

 Fuel tank

 r0.21.2

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"helperId\":\"fuel_container_space_fuel\",\"name\":\"Space fuel tank s [72]\",\"percentage\":55,\"timeLeft\":\"n/a\",\"type\":\"fuel_container\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e35758766"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "SpaceFuelContainer"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 187.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 72
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getItemsMass()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 2380.565333
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 2563.235333
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 187.0
getSelfMass()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 182.67
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "fuel_container"
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

  

 

Gyro

 r0.21.2

Spoiler

activate()                                        function
deactivate()                                      function
export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"helperId\":\"gyro\",\"name\":\"Gyroscope [203]\",\"pitch\":0.0,\"roll\":0.0,\"type\":\"gyro\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e64181892"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "GyroUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 203
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 104.41
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getPitch()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getRoll()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "gyro"
getYaw()                                          function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
hide()                                            function
load()                                            function
localForward()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 1.7484555314695e-07
            2                                     number: -1.0
            3                                     number: -1.509958309498e-07
localRight()                                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -1.0
            2                                     number: -1.7484555314695e-07
            3                                     number: 8.7422783678903e-08
localUp()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 8.7422812100613e-08
            2                                     number: -1.5099580252809e-07
            3                                     number: 1.0
setYawWorldReference(direction)                   function
show()                                            function
toggle()                                          function
unit                                              table
    [reference to self]
worldForward()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: -0.56095521195883
            2                                     number: 0.0038638120439722
            3                                     number: -0.8278371775665
worldRight()                                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.81512383023118
            2                                     number: -0.17206315957548
            3                                     number: -0.55314341576952
worldUp()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.14457745155019
            2                                     number: 0.98507841003868
            3                                     number: -0.093370395055397

 

 

Industry Unit

r0.21.2

Spoiler

batchStart(numBatches)                            function
export                                            table
    [same functions]
getCycleCountSinceStartup()                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 284
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getEfficiency()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "IndustryUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 5512.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 166
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1997.46
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 5512.0
getStatus()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "PENDING"
getUptime()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 120282.515625
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hardStop(allowIngredientLoss)                     function
hide()                                            function
load()                                            function
show()                                            function
softStop()                                        function
start()                                           function
startAndMaintain(quantity)                        function
unit                                              table
    [reference to self]

 

 

Library

r0.21.2

Spoiler

export                                            table
    [same functions]
load()                                            function
systemResolution2(vec_c1,vec_c2,vec_c0)           function
systemResolution3(vec_c1,vec_c2,vec_c3,vec_c0)    function
unit                                              table
    [reference to self]

 

 

PVP radar (atmospheric and space)

r0.22.0

Spoiler

export                                            table
    [same functions]
getConstructName(id)                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "unreachable"
getConstructPos(id)                               function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getConstructSize(id)                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getConstructType(id)                              function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "unreachable"
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"constructsList\":[{\"constructId\":\"1256720\",\"distance\":37.221349818623104,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"SCREW ALIOTH\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"151002\",\"distance\":78.970208423127104,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Marketplace Lacobus 2\",\"size\":\"XL\",\"targetThreatState\":0},{\"constructId\":\"1247280\",\"distance\":109.41473493143295,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"SCREW ALIOTH\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1754660\",\"distance\":135.37125020562712,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"F7 Skirmisher\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1254996\",\"distance\":170.30104644741633,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Hauler\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1268696\",\"distance\":599.7846249252301,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Static construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1638799\",\"distance\":658.26074758918492,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Dynamic construct\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1700801\",\"distance\":660.94779302344352,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Cyllandra\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1752495\",\"distance\":828.23031322176314,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"iCore v2\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1755652\",\"distance\":844.48860881322764,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Shuttlebus\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"120313\",\"distance\":860.05564745669471,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"AndersonWilliams AMNS ATLAS\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120314\",\"distance\":891.24202467005466,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Renard FSI SFC Heracles\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"120315\",\"distance\":922.73060310301059,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Renard Hercules Cutaway\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"120302\",\"distance\":927.20227237489632,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ships Museum 3\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120301\",\"distance\":927.50527478037998,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ship Museum 2\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120303\",\"distance\":944.45007431861291,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ships Museum 4\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120300\",\"distance\":945.08768876341844,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ship Museum 1\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120312\",\"distance\":965.55196940715564,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Renard SFC Argo\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"120310\",\"distance\":968.5185262655931,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"SoCalExile Paradise\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120309\",\"distance\":976.76436732241757,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"InfinityCorp ISS Boundless\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120304\",\"distance\":977.7710960441384,\"inIdentifyRange\":true,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ships Museum 5\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120311\",\"distance\":988.83503723921115,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"EvilDesGas Newton s Folly\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1310138\",\"distance\":1009.2226595585395,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Zoom Zoom\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"120305\",\"distance\":1025.838530305108,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"UEF Big Ships Museum 6\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"120308\",\"distance\":1048.3086534996405,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"BrianTurney Stanton Fore\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1627826\",\"distance\":1064.6922718854748,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Novark Speeder Mk6\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"120306\",\"distance\":1071.5861991233078,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"BrianTurney Stanton Mid\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"1712462\",\"distance\":1076.0447122819835,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"XS Full Large Space\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1770909\",\"distance\":1098.7264973508127,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"TwoLarge\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1311983\",\"distance\":1099.3553713419651,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Enveus Lacobus Base\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1311613\",\"distance\":1102.9237499640737,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Enveus Factory\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1763164\",\"distance\":1103.7366757827515,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Starter\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1737207\",\"distance\":1104.2616959485381,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"NonAnalogsTank\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"120307\",\"distance\":1109.6055277109579,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"BrianTurney Stanton Aft\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1646177\",\"distance\":1119.1927608809333,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Strider\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1763278\",\"distance\":1119.890871826279,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Skiff2\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1633540\",\"distance\":1122.0805904942233,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Enveus Headquarters\",\"size\":\"L\",\"targetThreatState\":0},{\"constructId\":\"1745152\",\"distance\":1122.536108728088,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Kondor\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1751738\",\"distance\":1124.9955481212139,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Bitch Mobile\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1806616\",\"distance\":1125.3888705341801,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Wasp\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1327062\",\"distance\":1125.417929495424,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mumen Racer Mk2\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1464160\",\"distance\":1128.8948754497335,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mumen Base\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1531956\",\"distance\":1135.4230973035442,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Warp Bus\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1633886\",\"distance\":1136.6401076743134,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mumen Speeder\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1311853\",\"distance\":1138.6738151285883,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Novark Racer MK2\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1309583\",\"distance\":1145.7751611467886,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Rogue 1\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1509996\",\"distance\":1156.441883757813,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mega Miner\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1312061\",\"distance\":1161.7351653506189,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Ship Factory\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1580222\",\"distance\":1174.0605992684107,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Static construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1560071\",\"distance\":1174.3003829936799,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Static construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1446264\",\"distance\":1175.5462112286255,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Fischer_Moon Piranha\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1830092\",\"distance\":1177.4035771685503,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Dynamic construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1561033\",\"distance\":1179.1482339943891,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Araga Factoria\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1752515\",\"distance\":1194.1568465828284,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Static construct\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1472072\",\"distance\":1198.1605053944588,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Space Shuttle\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1496423\",\"distance\":1203.6689635316895,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mostors Hangar\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1571275\",\"distance\":1203.9020183973164,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mostors Hangar\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1575509\",\"distance\":1227.8015857858406,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Landing Pad\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1643274\",\"distance\":1229.1264253603661,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Mostor Class Frigate 001\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1598186\",\"distance\":1319.7804612013581,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"VaderBoat\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1770723\",\"distance\":1327.4553348434283,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Dynamic construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1823474\",\"distance\":1355.8212257793577,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lil Valkyrie\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1808373\",\"distance\":1360.7563047818278,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lil Midget\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1363815\",\"distance\":1360.9699837546812,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Cargo Dropship\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1822692\",\"distance\":1365.1325001733526,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lil Fragger\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1783628\",\"distance\":1375.5857061272427,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lil Red\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1701553\",\"distance\":1392.1102344038004,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Snowspeeder\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1808025\",\"distance\":1394.9508719985529,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lil Miner\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1633085\",\"distance\":1413.9012476209768,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lackore Outpost\",\"size\":\"M\",\"targetThreatState\":0},{\"constructId\":\"1464157\",\"distance\":1422.923598652013,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Novark Speeder Mk6\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1597364\",\"distance\":1426.9332300245969,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Novark Mule MK1\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1647597\",\"distance\":1433.3641414195247,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Novark Racer MK2\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1560373\",\"distance\":1440.5320186098229,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Static construct\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1633502\",\"distance\":1461.6463923787842,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Dynamic construct\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1633896\",\"distance\":1468.4719972115017,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Farscape Prime\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1272008\",\"distance\":1661.8400377734986,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Dynamic construct\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1783773\",\"distance\":1677.918396062757,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Miner\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1760805\",\"distance\":2245.4360091855187,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Medrengard\",\"size\":\"S\",\"targetThreatState\":0},{\"constructId\":\"1771883\",\"distance\":2247.5724430678024,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Pacer MK1\",\"size\":\"XS\",\"targetThreatState\":0},{\"constructId\":\"1382045\",\"distance\":3440.1307871647673,\"inIdentifyRange\":false,\"info\":{},\"isIdentified\":false,\"myThreatStateToTarget\":0,\"name\":\"Lacobus Small Factory\",\"size\":\"S\",\"targetThreatState\":0}],\"elementId\":\"129889868\",\"helperId\":\"radar\",\"name\":\"Small atmospheric radar PvP s [102]\",\"properties\":{\"broken\":false,\"errorMessage\":\"\",\"identifiedConstructs\":[],\"identifyConstructs\":{},\"radarStatus\":1,\"selectedConstruct\":\"0\",\"worksInEnvironment\":true},\"staticProperties\":{\"maxIdentifiedTargets\":1,\"ranges\":{\"identify128m\":1000,\"identify16m\":125,\"identify32m\":250,\"identify64m\":500,\"scan\":5000},\"worksInAtmosphere\":true,\"worksInSpace\":false},\"type\":\"radar\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e129889868"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "RadarPvPAtmospheric"
getEntries()                                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 120300
            10                                    number: 120309
            11                                    number: 120310
            12                                    number: 120311
            13                                    number: 120312
            14                                    number: 120313
            15                                    number: 120314
            16                                    number: 120315
            17                                    number: 151002
            18                                    number: 1247280
            19                                    number: 1254996
            2                                     number: 120301
            20                                    number: 1256720
            21                                    number: 1268696
            22                                    number: 1272008
            23                                    number: 1309583
            24                                    number: 1310138
            25                                    number: 1311613
            26                                    number: 1311853
            27                                    number: 1311983
            28                                    number: 1312061
            29                                    number: 1327062
            3                                     number: 120302
            30                                    number: 1363815
            31                                    number: 1382045
            32                                    number: 1446264
            33                                    number: 1464157
            34                                    number: 1464160
            35                                    number: 1472072
            36                                    number: 1496423
            37                                    number: 1509996
            38                                    number: 1531956
            39                                    number: 1560071
            4                                     number: 120303
            40                                    number: 1560373
            41                                    number: 1561033
            42                                    number: 1571275
            43                                    number: 1575509
            44                                    number: 1580222
            45                                    number: 1597364
            46                                    number: 1598186
            47                                    number: 1627826
            48                                    number: 1633085
            49                                    number: 1633502
            5                                     number: 120304
            50                                    number: 1633540
            51                                    number: 1633886
            52                                    number: 1633896
            53                                    number: 1638799
            54                                    number: 1643274
            55                                    number: 1646177
            56                                    number: 1647597
            57                                    number: 1700801
            58                                    number: 1701553
            59                                    number: 1712462
            6                                     number: 120305
            60                                    number: 1737207
            61                                    number: 1745152
            62                                    number: 1751738
            63                                    number: 1752495
            64                                    number: 1752515
            65                                    number: 1754660
            66                                    number: 1755652
            67                                    number: 1760805
            68                                    number: 1763164
            69                                    number: 1763278
            7                                     number: 120306
            70                                    number: 1770723
            71                                    number: 1770909
            72                                    number: 1771883
            73                                    number: 1783628
            74                                    number: 1783773
            75                                    number: 1806616
            76                                    number: 1808025
            77                                    number: 1808373
            78                                    number: 1822692
            79                                    number: 1823474
            8                                     number: 120307
            80                                    number: 1830092
            9                                     number: 120308
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 88.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 102
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 486.72
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 88.0
getRange()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 5000.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "radar"
hasMatchingTransponder(id)                        function
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 


Radar

not available to craft or buy; for atmosphere and space radars see PVP radar instead

 

Receiver

r0.21.2

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "ReceiverUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 201
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 13.27
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getRange()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getSignalOut(plug)                                function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 


Screen

r0.21.2

Spoiler

activate()                                        function
addContent(x,y,html)                              function
addText(x,y,fontSize,text)                        function
clear()                                           function
deactivate()                                      function
deleteContent(id)                                 function
export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "ScreenUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 198
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 18.67
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getMouseState()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
getMouseX()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getMouseY()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getSignalIn(plug)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getState()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
moveContent(id,x,y)                               function
resetContent(id,html)                             function
setCenteredText(text)                             function
setContent(x,y,html)                              function
setHTML(html)                                     function
setRawHTML(html)                                  function
setSVG(svg)                                       function
setSignalIn(plug,state)                           function
setText(x,y,fontSize,text)                        function
show()                                            function
showContent(id,state)                             function
toggle()                                          function
unit                                              table
    [reference to self]

  

 

System

r0.21.2

Spoiler

__NQ_returnFromRunPlayerLUA(result)               function
addDataToWidget(dataId,widgetId)                  function
addMarker(filter,name)                            function
addMeasure(filter,sectionName,varName,value)      function
createData(dataJson)                              function
createWidget(panelId,type)                        function
createWidgetPanel(label)                          function
destroyData(dataId)                               function
destroyWidget(widgetId)                           function
destroyWidgetPanel(panelId)                       function
export                                            table
    [same functions]
freeze(bool)                                      function
getActionKeyName(actionName)                      function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getActionUpdateDeltaTime()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.016017999500036
getControlDeviceForwardInput()                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getControlDeviceLeftRightInput()                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getControlDeviceYawInput()                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getMouseDeltaX()                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getMouseDeltaY()                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getMousePosX()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1516.0
getMousePosY()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 1079.0
getMouseWheel()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getPlayerName(id)                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "unreachable"
getPlayerWorldPos(id)                             function
    [pcall]                                       table
        1                                         boolean: true
        2                                         table
            1                                     number: 0.0
            2                                     number: 0.0
            3                                     number: 0.0
getThrottleInputFromMouseWheel()                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0.0
getTime()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 92305436.722803
isFrozen()                                        function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
isViewLocked()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 0
load()                                            function
lockView(state)                                   function
logError(msg)                                     function
logInfo(msg)                                      function
logWarning(msg)                                   function
print(msg)                                        function
removeDataFromWidget(dataId,widgetId)             function
setScreen(content)                                function
showScreen(bool)                                  function
unit                                              table
    [reference to self]
updateData(dataId,dataJson)                       function

  

 

Telemeter

r0.21.2

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{}"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
getDistance()                                     function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: -1.0
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "TelemeterUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 199
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 40.79
getMaxDistance()                                  function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 50.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: ""
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 

 

Warp Drive

r0.21.0

Spoiler

activateWarp()                                    function
export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"buttonMsg\":\"CANNOT WARP\",\"cellCount\":\"0 / 0\",\"destination\":\"Unknown\",\"distance\":0,\"elementId\":\"26712674\",\"errorMsg\":\"NO WARP CONTAINER\",\"helperId\":\"warpdrive\",\"name\":\"Warp drive l [137]\",\"showError\":true,\"type\":\"warpdrive\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e26712674"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "WarpDriveUnit"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 43117.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 137
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 31360.0
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 43117.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "warpdrive"
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 

 

Weapon

r0.21.0

Spoiler

export                                            table
    [same functions]
getData()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "{\"elementId\":\"5341891\",\"helperId\":\"weapon\",\"name\":\"Extra small cannon xs [40]\",\"properties\":{\"ammoCount\":0,\"ammoMax\":0,\"ammoName\":\"\",\"ammoTypeId\":\"0\",\"cycleAnimationRemainingTime\":0.0,\"fireBlocked\":false,\"fireCounter\":0,\"fireReady\":false,\"hitProbability\":0.0,\"hitResult\":2,\"isBroken\":false,\"outOfZone\":true,\"repeatedFire\":false,\"weaponStatus\":0},\"staticProperties\":{\"baseDamage\":2000.0,\"cycleTime\":2.0,\"magazineVolume\":30.0,\"optimalAimingCone\":10.0,\"optimalDistance\":5000.0,\"optimalTracking\":20.0,\"reloadTime\":5.0,\"size\":\"xs\",\"unloadTime\":2.0},\"targetConstruct\":{\"constructId\":\"0\"},\"type\":\"weapon\"}\n"
getDataId()                                       function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "e5341891"
getElementClass()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "WeaponCannonExtraSmall"
getHitPoints()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 299.0
getId()                                           function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 40
getIntegrity()                                    function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 100.0
getMass()                                         function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 190.1
getMaxHitPoints()                                 function
    [pcall]                                       table
        1                                         boolean: true
        2                                         number: 299.0
getWidgetType()                                   function
    [pcall]                                       table
        1                                         boolean: true
        2                                         string: "weapon"
hide()                                            function
load()                                            function
show()                                            function
unit                                              table
    [reference to self]

 

Edited by hdparm
Updated for v0.22.4

Share this post


Link to post
Share on other sites

Unofficial Lua change log

r0.22.4

Changes since r0.22.0:

  • Core
    • New functions: getElementPositionById(localId), getElementRotationById(localId), getElementTagsById(localId).
  • Other
    • global.lua is now inside game.ung and cannot be edited by players.
    • Editing existing files in Game/data/lua should no longer trigger the EQU8 anti-cheat.

r0.22.0

Changes since r0.21.3:

  • PVP radar
    • New functions:  getConstructName(id), getConstructPos(id), getConstructSize(id), getConstructType(id), getEntries(), getRange(), hasMatchingTransponder(id). The getConstruct* functions return "unreachable" or { 0, 0, 0 }, even for construct information that's available in getData().
    • New events: enter(id), leave(id).

r0.21.3

Changes since r0.21.2:

  • Other
    • package.loadlib has been disabled.

 

r0.21.2

Changes since r0.20.0:

  • Anti-Gravity Generator
    • New function: getBaseAltitude().
  • PVP radar
    • getData() no longer returns construct positions.
  • Other
    • pcall and xpcall can no longer be used to avoid the CPU instruction limit.

Share this post


Link to post
Share on other sites

There is a new element I've never seen before (on a ship with a small space engine but its NOT the small engine): 
Element class: SpaceEngineSmallGroup
getFuelRate : function: 000001AEB273EEA0
getSignalIn : function: 000001AEB273EC00
toggle : function: 000001AFD57776A0
isOutOfFuel : function: 000001AEB273EBD0
getObstructionFactor : function: 000001AEB273F2C0
getDataId : function: 000001AFD576FF00
getMass : function: 000001AFD57716D0
activate : function: 000001AFD5771E20
unit : table: 000001AEF8256710
distance : function: 000001AEB273EDE0
setThrust : function: 000001AFD5777580
getMaxThrust : function: 000001AFD57777F0
getMinThrust : function: 000001AFD57794A0
getIntegrity : function: 000001AFD5770260
show : function: 000001AFD576FC30
hide : function: 000001AFD576FE70
torqueAxis : function: 000001AEB273F200
getThrust : function: 000001AEB273F110
getData : function: 000001AFD5770110
load : function: 000001AEB273F230
getMaxHitPoints : function: 000001AFD57702F0
setSignalIn : function: 000001AEB273F1D0
getFuelConsumption : function: 000001AEB273F1A0
setTags : function: 000001AEB273ED50
hasBrokenFuelTank : function: 000001AEB273F3E0
getElementClass : function: 000001AFD57718B0
getT50 : function: 000001AEB273EE40
export : table: 000001AEF82561D0
getTags : function: 000001AEB273F170
getState : function: 000001AFD5777430
isObstructed : function: 000001AEB273F140
getFuelRateEfficiency : function: 000001AEB273F380
thrustAxis : function: 000001AEB273F320
getHitPoints : function: 000001AFD5770290
getId : function: 000001AFD5771640
getWidgetType : function: 000001AFD5770590
getCurrentFuelRate : function: 000001AEB273ED20
getMaxThrustEfficiency : function: 000001AFD5779D40
getMaxThrustBase : function: 000001AFD57777C0
deactivate : function: 000001AFD5777E50
I'm guessing this is an aggregate of all space engines (my setup had only one). Sadly, it disappears if there is no link to the engine.

Share this post


Link to post
Share on other sites

Just downloaded DU and unfortunately it looks like they removed the 'C:\ProgramData\Dual Universe\Game\documentation' directory. Can't find the codex in the game files to read any of the Lua API so glad that I was able to find this post detailing that. Would be annoying to have to rely on the game being up and running to look at the Lua documentation.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...