GE Lua Documentation

Press F to search!

maxn

Definition


-- @/=[C]:-1
function maxn(...)

Callers

@/lua/common/utils.lua
  local arg = {...}
  local narg = table.maxn(arg)
  if narg > 1 then
@/lua/ge/extensions/core/camera.lua
  if type(arg[1]) == "number" then
    player, camName, withTransition, customData = unpack(arg, 1, table.maxn(arg)) -- without arguments, unpack can stop at the first nil it encounters, cutting the row short
  else
  else
    camName, withTransition, customData = unpack(arg, 1, table.maxn(arg)) -- without arguments, unpack can stop at the first nil it encounters, cutting the row short
  end
@/lua/ge/ge_utils.lua

  local geluaCommand = string.format('local args = %s; %s(unpack(args, 1, table.maxn(args)))', 'deserialize(%q)', geluaFunctionName)
  local cmd = string.format('obj:queueGameEngineLua(string.format(%q, serialize({%s, unpack(%s)})))', geluaCommand, vluaCommand, serialize({...}))
@/lua/vehicle/partCondition.lua
      local visualState = partCondition.visualState
      --odometer, integrityValue, visualValue, integrityState, visualState = unpack(partCondition, 1, table.maxn(partCondition))
      integrity = integrityState or integrityValue