GE Lua Documentation

Press F to search!

getn

Definition


-- @/getn:-1
function getn(...)

Callers

@/lua/ge/extensions/editor/roadUtils.lua

          if table.getn(decalNodes) >= actualDecalLength + 1 then
            local decalID = editor.createRoad(decalNodes, decalSettings)
@/lua/ge/extensions/editor/flowgraph/main.lua
                im.PushStyleColor2(im.Col_Button, im.ImVec4(0.2,0.75,0.25,0.6))
                if im.Button("All OK :) " .. table.getn(ids)) then
                  dump(ids)
@/lua/ge/extensions/editor/roadEditor.lua
local function cycleHoveredRoadsAM(value)
  local numberOfHoveredRoads = table.getn(hoveredRoadsIDs)
  if numberOfHoveredRoads == 0 then return end
@/lua/ge/extensions/editor/decalEditor.lua
  im.PushItemWidth(avail.x)
  if im.ListBox1("", templateSelectionIndex, im.ArrayCharPtrByTbl(names), table.getn(names), avail.y/21) then
    editor.selectObjectById(templates[templateSelectionIndex[0]+1]:getID())
@/lua/ge/extensions/tech/impactgen/crashOutput.lua
    for i, p in ipairs(path) do
      if i == table.getn(path) then
        break

    current[path[table.getn(path)]] = partEntry
  end
  local instances = scenetree.findClassObjects(clazz)
  if table.getn(instances) > 0 then
    local instance = instances[1]
@/lua/ge/extensions/editor/roadTemplateEditor.lua
  -- Create the roads
  for i=1, table.getn(jsonData.roads) do
    local roadID = editor.createRoad({}, jsonData.roads[i])
  -- Load the decorations
  for i=1, table.getn(jsonData.decorations) do
    local decoID = createDecoObject()
  -- Create the decals
  for i=1, table.getn(jsonData.decals) do
    local decalID = editor.createRoad({}, jsonData.decals[i])

    if im.ListBox1("", decalRoadSelectionIndex, im.ArrayCharPtrByTbl(roadNames), table.getn(roadNames), 4) then
      editor.selectObjectById(decalRoads[decalRoadSelectionIndex[0]+1])
        editor.selectObjectById(roadID)
        decalRoadSelectionIndex[0] = table.getn(decalRoads) - 1
      end
        editor.selectObjectById(roadID)
        decalRoadSelectionIndex[0] = table.getn(decalRoads) - 1
      end

    if im.ListBox1("", decorationSelectionIndex, im.ArrayCharPtrByTbl(decoNames), table.getn(decoNames), 4) then
      editor.selectObjectById(decorations[decorationSelectionIndex[0]+1])
        editor.selectObjectById(decoID)
        decorationSelectionIndex[0] = table.getn(decorations) - 1
      end
        table.insert(decorations, cloneID)
        decorationSelectionIndex[0] = table.getn(decorations) - 1
      end

    if im.ListBox1("", decalSelectionIndex, im.ArrayCharPtrByTbl(decalNames), table.getn(decalNames), 4) then
      editor.selectObjectById(decals[decalSelectionIndex[0]+1])
        editor.selectObjectById(decalID)
        decalSelectionIndex[0] = table.getn(decals) - 1
      end
        editor.selectObjectById(decalID)
        decalSelectionIndex[0] = table.getn(decals) - 1
      end
@/lua/ge/extensions/editor/assetBrowser.lua

  local dirNamesCount = table.getn(dirNames)
  for k, dirName in ipairs(dirNames) do
@/lua/ge/extensions/freeroam/dragRace.lua

        if table.getn(vehicles) == 0 then
          finishRace()
@/lua/ge/ge_utils.lua
  ctx.vehiclesIndex = 0
  ctx.vehiclesCount = table.getn(allVehiclesCache)
  ctx.vehiclesIndex = 0
  ctx.vehiclesCount = table.getn(allVehiclesCache)
@/lua/ge/extensions/editor/meshEditor.lua

  if nodeID == 0 or nodeID == table.getn(nodes) - 1 then
    editor.logError("Can't split at the end of a mesh.")
@/lua/ge/extensions/career/modules/branches/leagues.lua
    M.getStartConditionLeagueId(m.startCondition, lMap)
    if table.getn(lMap) > 1 then
      log("W","","Mission has more than one league in starting condition... " .. mId)