Lua function list

(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.

Moderator: NBJeff

learn_more
level1
level1
Posts: 36
Joined: Sun Sep 07, 2014 9:18 pm

Lua function list

Postby learn_more » Sun Sep 14, 2014 10:48 pm

This dump shows all functions available from within Lua,
All mission functions are globally available as well, but since those are mission specific (and their source is included anyway) i omitted those.

Code: Select all

do local _G = {
  Game = {
    AdviserIncoming = "native function( string )",
    AdviserSay = "native function( string, string )",
    AdviserSayBatch = "native function( string, string )",
    AttachScript = "native function( string, string )",
    BeginSkippable = "native function()",
    CamMove = "native function( float, float, float, float )",
    CamMoveAndZoom = "native function( float, float, float, float )",
    CamMoveToObject = "native function( string, float, float, bool )",
    CamTrack = "native function( string, float )",
    CamWait = "native function()",
    CamZoom = "native function( float, float, bool )",
    Damage = "native function( string, float, string )",
    DebugOut = "native function( ??, ??, <76f400> )",
    DeliverVIP = "native function( string, string )",
    Delivery = "native function( string, float, string )",
    Drop = "native function( string )",
    DropEquipment = "native function( string )",
    EndSkippable = "native function()",
    EntityFollow = "native function( string, string )",
    FadeToBlack = "native function( float, bool )",
    FadeToColour = "native function( float, float, float, float, float )",
    FadeUp = "native function( float, bool )",
    GameOver = "native function()",
    GetNumRoomExtras = "native function( integer, integer )",
    GetNumRooms = "native function( string )",
    GetProperty = "native function( string, string )",
    GetRoomCondition = "native function( integer, integer )",
    GiveContraband = "native function( string, string )",
    GiveEquipment = "native function( string, string )",
    GiveStatusEffect = "native function( string, string, float )",
    Hide = "native function( string )",
    HideArea = "native function( string, float, float, float )",
    HidePolaroid = "native function( string )",
    LoseEquipment = "native function( string )",
    Misconduct = "native function( float, float, float, float )",
    MovePolaroidTo = "native function( string, string, float, float )",
    Pause = "native function( float )",
    Pickup = "native function( string, string )",
    Polaroid = "native function( string, string, float, float, float )",
    PolaroidAtMarker = "native function( string, string, float )",
    PolaroidTrigger = "native function( string, float, float, string )",
    PowerOff = "native function( string )",
    PowerOn = "native function( string )",
    RemoveScript = "native function( string )",
    SaveMap = "native function( string )",
    SendEntityToObject = "native function( string, string, float, float, float )",
    SendEntityToPos = "native function( string, float, float, float, float )",
    SendEntityToRoom = "native function( string, string, float )",
    SetBlockedArea = "native function( float, float, float, float )",
    SetChapter = "native function( string )",
    SetEntityPos = "native function( string, float, float, float, float )",
    SetFlag = "native function( string, string, bool )",
    SetIntakeOpen = "native function( string, bool )",
    SetMap = "native function( string )",
    SetMaterial = "native function( float, float, string )",
    SetProperty = "native function( string, string, float )",
    SetSprite = "native function( string, string )",
    Show = "native function( string )",
    Sound = "native function( string, string )",
    Spawn = "native function( string, string, float, float )",
    SpawnDecal = "native function( float, float, float, float, float )",
    SpawnPrisoners = "native function( float, float, float, float )",
    StopSound = "native function( string, string )",
    Time = "native function()",
    Tour = "native function( string, string, string )",
    Unlock = "native function( string, string )",
    VehicleCallout = "native function( string, string )"
  } --[[table: 15570B08]],
  Objective = {
    Complete = "native function( string )",
    Create = "native function( string )",
    CreateGrant = "native function( string, float, float )",
    Delete = "native function( string )",
    Exists = "native function( string )",
    HiddenWhileLocked = "native function()",
    Invert = "native function()",
    RequireBuilding = "native function( bool )",
    RequireDesignation = "native function( string, string )",
    RequireFlag = "native function( string, bool, float )",
    RequireGangControl = "native function( float, float, float )",
    RequireManufactured = "native function( string, float )",
    RequireMaterials = "native function( string, float )",
    RequireMaterialsAvailable = "native function( string, float, bool )",
    RequireNamedObject = "native function( string )",
    RequireObjectOff = "native function( string )",
    RequireObjectOn = "native function( string )",
    RequireObjectPower = "native function( string )",
    RequireObjects = "native function( string, float )",
    RequireObjectsInRoom = "native function( string, string, float )",
    RequirePowerCapacity = "native function( string, float )",
    RequirePrisonerInCell = "native function( string, string )",
    RequirePrisonersUnderControl = "native function( float, float, float )",
    RequireResearched = "native function( string )",
    RequireRoom = "native function( string, bool )",
    RequireRoomsAvailable = "native function( string, float )",
    RequireSecurityInRoom = "native function( string, float )",
    RequireSetMeals = "native function( float )",
    RequireTimePassed = "native function( float )",
    Requires = "native function()",
    SetFlags = "native function( bool, bool )",
    SetParent = "native function( string )",
    SetPayment = "native function( float )",
    SetPreRequisite = "native function( string )",
    SetTargetVisible = "native function( bool )",
    TargetObject = "native function( string )",
    TargetRoom = "native function( string )",
    TargetZone = "native function( float, float, float )"
  } --[[table: 15C76120]],
  ScriptSystem = ScriptSystem --[[userdata: 142E3600]],
  Trigger = {
    Create = "native function( string )",
    Delete = "native function( string )",
    PreserveObjectives = "native function()",
    RequireObjective = "native function( string )"
  } --[[table: 15C763C8]],
  _G = nil --[[ref]],
  _VERSION = "Lua 5.1",
  assert = assert --[[function: builtin]],
  collectgarbage = collectgarbage --[[function: builtin]],
  coroutine = {
    create = coroutine.create --[[function: builtin]],
    resume = coroutine.resume --[[function: builtin]],
    running = coroutine.running --[[function: builtin]],
    status = coroutine.status --[[function: builtin]],
    wrap = coroutine.wrap --[[function: builtin]],
    yield = coroutine.yield --[[function: builtin]]
  } --[[table: 146EC0C0]],
  error = error --[[function: builtin]],
  gcinfo = gcinfo --[[function: builtin]],
  getfenv = getfenv --[[function: builtin]],
  getmetatable = getmetatable --[[function: builtin]],
  ipairs = ipairs --[[function: builtin]],
  load = load --[[function: builtin]],
  loadstring = loadstring --[[function: builtin]],
  math = {
    abs = math.abs --[[function: builtin]],
    acos = math.acos --[[function: builtin]],
    asin = math.asin --[[function: builtin]],
    atan = math.atan --[[function: builtin]],
    atan2 = math.atan2 --[[function: builtin]],
    ceil = math.ceil --[[function: builtin]],
    cos = math.cos --[[function: builtin]],
    cosh = math.cosh --[[function: builtin]],
    deg = math.deg --[[function: builtin]],
    exp = math.exp --[[function: builtin]],
    floor = math.floor --[[function: builtin]],
    fmod = math.fmod --[[function: builtin]],
    frexp = math.frexp --[[function: builtin]],
    huge = 1/0 --[[math.huge]],
    ldexp = math.ldexp --[[function: builtin]],
    log = math.log --[[function: builtin]],
    log10 = math.log10 --[[function: builtin]],
    max = math.max --[[function: builtin]],
    min = math.min --[[function: builtin]],
    mod = nil --[[ref]],
    modf = math.modf --[[function: builtin]],
    pi = 3.1415926535898,
    pow = math.pow --[[function: builtin]],
    rad = math.rad --[[function: builtin]],
    random = math.random --[[function: builtin]],
    randomseed = math.randomseed --[[function: builtin]],
    sin = math.sin --[[function: builtin]],
    sinh = math.sinh --[[function: builtin]],
    sqrt = math.sqrt --[[function: builtin]],
    tan = math.tan --[[function: builtin]],
    tanh = math.tanh --[[function: builtin]]
  } --[[table: 15570978]],
  module = module --[[function: builtin]],
  newproxy = newproxy --[[function: builtin]],
  next = next --[[function: builtin]],
  pairs = pairs --[[function: builtin]],
  pcall = pcall --[[function: builtin]],
  rawequal = rawequal --[[function: builtin]],
  rawget = rawget --[[function: builtin]],
  rawset = rawset --[[function: builtin]],
  select = select --[[function: builtin]],
  setfenv = setfenv --[[function: builtin]],
  setmetatable = setmetatable --[[function: builtin]],
  string = {
    byte = string.byte --[[function: builtin]],
    char = string.char --[[function: builtin]],
    dump = string.dump --[[function: builtin]],
    find = string.find --[[function: builtin]],
    format = string.format --[[function: builtin]],
    gfind = string.gmatch --[[function: builtin]],
    gmatch = nil --[[ref]],
    gsub = string.gsub --[[function: builtin]],
    len = string.len --[[function: builtin]],
    lower = string.lower --[[function: builtin]],
    match = string.match --[[function: builtin]],
    rep = string.rep --[[function: builtin]],
    reverse = string.reverse --[[function: builtin]],
    sub = string.sub --[[function: builtin]],
    upper = string.upper --[[function: builtin]]
  } --[[table: 15570900]],
  table = {
    concat = table.concat --[[function: builtin]],
    foreach = table.foreach --[[function: builtin]],
    foreachi = table.foreachi --[[function: builtin]],
    getn = table.getn --[[function: builtin]],
    insert = table.insert --[[function: builtin]],
    maxn = table.maxn --[[function: builtin]],
    remove = table.remove --[[function: builtin]],
    setn = table.setn --[[function: builtin]],
    sort = table.sort --[[function: builtin]]
  } --[[table: 146EC1D8]],
  tonumber = tonumber --[[function: builtin]],
  tostring = tostring --[[function: builtin]],
  type = type --[[function: builtin]],
  unpack = unpack --[[function: builtin]],
  xpcall = xpcall --[[function: builtin]]
} --[[table: 14524DB0]]
local __G={}
_G._G = _G
_G.math.mod = _G.math.fmod
_G.string.gmatch = _G.string.gfind
return _G
end


i used a modified serpent to generate this dump.
Last edited by learn_more on Thu Oct 30, 2014 9:04 pm, edited 3 times in total.
learn_more
level1
level1
Posts: 36
Joined: Sun Sep 07, 2014 9:18 pm

Re: Unofficial reference

Postby learn_more » Mon Sep 15, 2014 9:30 am

Also, for the developers:
strings statically allocated inside a function incur a runtime overhead _each_ time the function is called, because a global bitflag is used to see if it's initialized. (less complex types like an int don't necessarily do this)
The current profiler allocates and de-allocates a string each time a function marked with it is entered, for strings less than 0x10 chars this means only a strlen + strcpy, but for strings longer also an allocation.
learn_more
level1
level1
Posts: 36
Joined: Sun Sep 07, 2014 9:18 pm

Re: Lua function list

Postby learn_more » Sat Sep 20, 2014 1:45 am

Updated the dump with deduced argument types,
please note that they are deduced by a tool that analyzes the first instructions, so they will not be right 100% of the time (the dumper uses a very simple check atm)
the DebugOut for example is plain wrong, it has only one argument (a string),
but for now i don't want to hardcode exceptions.

also please note, whilst the numbers are marked float, they are really doubles (8 bytes instead of 4)
learn_more
level1
level1
Posts: 36
Joined: Sun Sep 07, 2014 9:18 pm

Re: Lua function list

Postby learn_more » Fri Sep 26, 2014 6:56 pm

updated for alpha 25

Code: Select all

do local _G = {
  Game = {
    AdviserIncoming = "native function( string ) @ 'prison architect.exe' + 0x186f30",
    AdviserSay = "native function( string, string ) @ 'prison architect.exe' + 0x186dd0",
    AdviserSayBatch = "native function( string, string ) @ 'prison architect.exe' + 0x186c70",
    AttachScript = "native function( string, string ) @ 'prison architect.exe' + 0x1839d0",
    CamMove = "native function( float, float, float, float ) @ 'prison architect.exe' + 0x186bb0",
    CamMoveAndZoom = "native function( float, float, float, float ) @ 'prison architect.exe' + 0x186ae0",
    CamMoveToObject = "native function( string, float, float, bool ) @ 'prison architect.exe' + 0x1868a0",
    CamTrack = "native function( string, float ) @ 'prison architect.exe' + 0x1869a0",
    CamWait = "native function() @ 'prison architect.exe' + 0x180f90",
    CamZoom = "native function( float, float, bool ) @ 'prison architect.exe' + 0x186a70",
    Damage = "native function( string, float, string ) @ 'prison architect.exe' + 0x183b10",
    DebugOut = "native function( ??, ??, <75bbf0> ) @ 'prison architect.exe' + 0x35bef0",
    DeliverVIP = "native function( string, string ) @ 'prison architect.exe' + 0x183ea0",
    Delivery = "native function( string, float, string ) @ 'prison architect.exe' + 0x181350",
    Drop = "native function( string ) @ 'prison architect.exe' + 0x185040",
    DropEquipment = "native function( string ) @ 'prison architect.exe' + 0x184f10",
    EntityFollow = "native function( string, string ) @ 'prison architect.exe' + 0x183d60",
    FadeToBlack = "native function( float, bool ) @ 'prison architect.exe' + 0x184d70",
    FadeToColour = "native function( float, float, float, float, float ) @ 'prison architect.exe' + 0x184c10",
    FadeUp = "native function( float, bool ) @ 'prison architect.exe' + 0x184d00",
    GameOver = "native function() @ 'prison architect.exe' + 0x180f70",
    GetNumRoomExtras = "native function( integer, integer ) @ 'prison architect.exe' + 0x1845b0",
    GetNumRooms = "native function( string ) @ 'prison architect.exe' + 0x184380",
    GetProperty = "native function( string, string ) @ 'prison architect.exe' + 0x1846d0",
    GetRoomCondition = "native function( integer, integer ) @ 'prison architect.exe' + 0x184480",
    GiveContraband = "native function( string, string ) @ 'prison architect.exe' + 0x185410",
    GiveEquipment = "native function( string, string ) @ 'prison architect.exe' + 0x185550",
    GiveStatusEffect = "native function( string, string, float ) @ 'prison architect.exe' + 0x1852b0",
    Hide = "native function( string ) @ 'prison architect.exe' + 0x186540",
    HideArea = "native function( string, float, float, float ) @ 'prison architect.exe' + 0x185c90",
    HidePolaroid = "native function( string ) @ 'prison architect.exe' + 0x185db0",
    LoseEquipment = "native function( string ) @ 'prison architect.exe' + 0x184de0",
    Misconduct = "native function( float, float, float, float ) @ 'prison architect.exe' + 0x181230",
    MovePolaroidTo = "native function( string, string, float, float ) @ 'prison architect.exe' + 0x185f00",
    Pause = "native function( float ) @ 'prison architect.exe' + 0x184160",
    Pickup = "native function( string, string ) @ 'prison architect.exe' + 0x185170",
    Polaroid = "native function( string, string, float, float, float ) @ 'prison architect.exe' + 0x186220",
    PolaroidAtMarker = "native function( string, string, float ) @ 'prison architect.exe' + 0x1860a0",
    PolaroidTrigger = "native function( string, float, float, string ) @ 'prison architect.exe' + 0x1863d0",
    PowerOff = "native function( string ) @ 'prison architect.exe' + 0x181730",
    PowerOn = "native function( string ) @ 'prison architect.exe' + 0x1817e0",
    RemoveScript = "native function( string ) @ 'prison architect.exe' + 0x183920",
    SaveMap = "native function( string ) @ 'prison architect.exe' + 0x186ff0",
    SendEntityToObject = "native function( string, string, float, float, float ) @ 'prison architect.exe' + 0x185690",
    SendEntityToPos = "native function( string, float, float, float, float ) @ 'prison architect.exe' + 0x185a00",
    SendEntityToRoom = "native function( string, string, float ) @ 'prison architect.exe' + 0x185b30",
    SetBlockedArea = "native function( float, float, float, float ) @ 'prison architect.exe' + 0x1866a0",
    SetChapter = "native function( string ) @ 'prison architect.exe' + 0x1870a0",
    SetEntityPos = "native function( string, float, float, float, float ) @ 'prison architect.exe' + 0x1858f0",
    SetFlag = "native function( string, string, bool ) @ 'prison architect.exe' + 0x184ab0",
    SetIntakeOpen = "native function( string, bool ) @ 'prison architect.exe' + 0x185820",
    SetMap = "native function( string ) @ 'prison architect.exe' + 0x187150",
    SetProperty = "native function( string, string, float ) @ 'prison architect.exe' + 0x1837c0",
    SetSprite = "native function( string, string ) @ 'prison architect.exe' + 0x184970",
    Show = "native function( string ) @ 'prison architect.exe' + 0x1865f0",
    Sound = "native function( string, string ) @ 'prison architect.exe' + 0x1815f0",
    Spawn = "native function( string, string, float, float ) @ 'prison architect.exe' + 0x183fe0",
    SpawnDecal = "native function( float, float, float, float, float ) @ 'prison architect.exe' + 0x183c70",
    SpawnPrisoners = "native function( float, float, float, float ) @ 'prison architect.exe' + 0x181110",
    StopSound = "native function( string, string ) @ 'prison architect.exe' + 0x1814b0",
    Time = "native function() @ 'prison architect.exe' + 0x35b460",
    Tour = "native function( string, string, string ) @ 'prison architect.exe' + 0x1841a0",
    Unlock = "native function( string, string ) @ 'prison architect.exe' + 0x186730"
  } --[[table: 135624E8]],
  Objective = {
    Complete = "native function( string ) @ 'prison architect.exe' + 0x183090",
    Create = "native function( string ) @ 'prison architect.exe' + 0x183610",
    CreateGrant = "native function( string, float, float ) @ 'prison architect.exe' + 0x183500",
    Exists = "native function( string ) @ 'prison architect.exe' + 0x183240",
    HiddenWhileLocked = "native function() @ 'prison architect.exe' + 0x180f50",
    Invert = "native function() @ 'prison architect.exe' + 0x1810e0",
    RequireBuilding = "native function( bool ) @ 'prison architect.exe' + 0x180fe0",
    RequireDesignation = "native function( string, string ) @ 'prison architect.exe' + 0x181b10",
    RequireFlag = "native function( string, bool, float ) @ 'prison architect.exe' + 0x182bb0",
    RequireGangControl = "native function( float, float, float ) @ 'prison architect.exe' + 0x181d30",
    RequireManufactured = "native function( string, float ) @ 'prison architect.exe' + 0x181a00",
    RequireMaterials = "native function( string, float ) @ 'prison architect.exe' + 0x182810",
    RequireMaterialsAvailable = "native function( string, float, bool ) @ 'prison architect.exe' + 0x182090",
    RequireNamedObject = "native function( string ) @ 'prison architect.exe' + 0x182620",
    RequireObjectOff = "native function( string ) @ 'prison architect.exe' + 0x182280",
    RequireObjectOn = "native function( string ) @ 'prison architect.exe' + 0x182340",
    RequireObjectPower = "native function( string ) @ 'prison architect.exe' + 0x182400",
    RequireObjects = "native function( string, float ) @ 'prison architect.exe' + 0x1826e0",
    RequireObjectsInRoom = "native function( string, string, float ) @ 'prison architect.exe' + 0x181f10",
    RequirePowerCapacity = "native function( string, float ) @ 'prison architect.exe' + 0x182190",
    RequirePrisonerInCell = "native function( string, string ) @ 'prison architect.exe' + 0x1824c0",
    RequirePrisonersUnderControl = "native function( float, float, float ) @ 'prison architect.exe' + 0x182db0",
    RequireResearched = "native function( string ) @ 'prison architect.exe' + 0x181c70",
    RequireRoom = "native function( string, bool ) @ 'prison architect.exe' + 0x182cb0",
    RequireRoomsAvailable = "native function( string, float ) @ 'prison architect.exe' + 0x182900",
    RequireSecurityInRoom = "native function( string, float ) @ 'prison architect.exe' + 0x181e20",
    RequireSetMeals = "native function( float ) @ 'prison architect.exe' + 0x183360",
    RequireTimePassed = "native function( float ) @ 'prison architect.exe' + 0x182b60",
    Requires = "native function() @ 'prison architect.exe' + 0x1829f0",
    SetFlags = "native function( bool, bool ) @ 'prison architect.exe' + 0x181080",
    SetParent = "native function( string ) @ 'prison architect.exe' + 0x1831c0",
    SetPayment = "native function( float ) @ 'prison architect.exe' + 0x183170",
    SetPreRequisite = "native function( string ) @ 'prison architect.exe' + 0x1833a0",
    SetTargetVisible = "native function( bool ) @ 'prison architect.exe' + 0x181030",
    TargetObject = "native function( string ) @ 'prison architect.exe' + 0x182f30",
    TargetRoom = "native function( string ) @ 'prison architect.exe' + 0x182e70",
    TargetZone = "native function( float, float, float ) @ 'prison architect.exe' + 0x182ff0"
  } --[[table: 12C2FE38]],
  ScriptSystem = ScriptSystem --[[userdata: 1EC5D3E0]],
  Trigger = {
    Create = "native function( string ) @ 'prison architect.exe' + 0x181950",
    PreserveObjectives = "native function() @ 'prison architect.exe' + 0x180fb0",
    RequireObjective = "native function( string ) @ 'prison architect.exe' + 0x181890"
  } --[[table: 12C2F370]],
  _G = nil --[[ref]],
  _VERSION = "Lua 5.1",
  assert = assert --[[function: 127C95B8]],
  collectgarbage = collectgarbage --[[function: 127C93D8]],
  coroutine = {
    create = coroutine.create --[[function: 127C9218]],
    resume = coroutine.resume --[[function: 127C8FF8]],
    running = coroutine.running --[[function: 127C8F38]],
    status = coroutine.status --[[function: 127C9038]],
    wrap = coroutine.wrap --[[function: 137009D0]],
    yield = coroutine.yield --[[function: 137009B0]]
  } --[[table: 13562A88]],
  error = error --[[function: 127C9298]],
  gcinfo = gcinfo --[[function: 127C9358]],
  getfenv = getfenv --[[function: 127C9658]],
  getmetatable = getmetatable --[[function: 127C95D8]],
  ipairs = ipairs --[[function: 1232F9C0]],
  load = load --[[function: 127C9498]],
  loadstring = loadstring --[[function: 127C9478]],
  math = {
    abs = math.abs --[[function: 13700870]],
    acos = math.acos --[[function: 135638C0]],
    asin = math.asin --[[function: 12465E78]],
    atan = math.atan --[[function: 12465EF8]],
    atan2 = math.atan2 --[[function: 12465EB8]],
    ceil = math.ceil --[[function: 12465F38]],
    cos = math.cos --[[function: 12465FB8]],
    cosh = math.cosh --[[function: 12465F78]],
    deg = math.deg --[[function: 12465FF8]],
    exp = math.exp --[[function: 12466038]],
    floor = math.floor --[[function: 12466078]],
    fmod = math.fmod --[[function: 124660B8]],
    frexp = math.frexp --[[function: 124660F8]],
    huge = 1/0 --[[math.huge]],
    ldexp = math.ldexp --[[function: 12466138]],
    log = math.log --[[function: 124661B8]],
    log10 = math.log10 --[[function: 12466178]],
    max = math.max --[[function: 124661F8]],
    min = math.min --[[function: 1F560060]],
    mod = nil --[[ref]],
    modf = math.modf --[[function: 1F5600A0]],
    pi = 3.1415926535898,
    pow = math.pow --[[function: 1F5600E0]],
    rad = math.rad --[[function: 1F560120]],
    random = math.random --[[function: 1F560160]],
    randomseed = math.randomseed --[[function: 1F5601A0]],
    sin = math.sin --[[function: 1F560200]],
    sinh = math.sinh --[[function: 1F5601C0]],
    sqrt = math.sqrt --[[function: 1F560240]],
    tan = math.tan --[[function: 1F5602C0]],
    tanh = math.tanh --[[function: 1F560280]]
  } --[[table: 13562678]],
  module = module --[[function: 13700AD0]],
  newproxy = newproxy --[[function: 1232E7F0]],
  next = next --[[function: 127C9418]],
  pairs = pairs --[[function: 1232F7B0]],
  pcall = pcall --[[function: 127C90D8]],
  rawequal = rawequal --[[function: 127C90F8]],
  rawget = rawget --[[function: 127C9378]],
  rawset = rawset --[[function: 127C9518]],
  select = select --[[function: 127C9578]],
  setfenv = setfenv --[[function: 127C8FD8]],
  setmetatable = setmetatable --[[function: 127C91F8]],
  string = {
    byte = string.byte --[[function: 12465E18]],
    char = string.char --[[function: 12466278]],
    dump = string.dump --[[function: 124662B8]],
    find = string.find --[[function: 124662F8]],
    format = string.format --[[function: 12466338]],
    gfind = string.gmatch --[[function: 124663B8]],
    gmatch = nil --[[ref]],
    gsub = string.gsub --[[function: 124663F8]],
    len = string.len --[[function: 12466438]],
    lower = string.lower --[[function: 12466478]],
    match = string.match --[[function: 124664B8]],
    rep = string.rep --[[function: 127C92B8]],
    reverse = string.reverse --[[function: 12466518]],
    sub = string.sub --[[function: 12466558]],
    upper = string.upper --[[function: 12466598]]
  } --[[table: 135620D8]],
  table = {
    concat = table.concat --[[function: 13700B90]],
    foreach = table.foreach --[[function: 1363D5C0]],
    foreachi = table.foreachi --[[function: 1363D520]],
    getn = table.getn --[[function: 1363D620]],
    insert = table.insert --[[function: 1363D5E0]],
    maxn = table.maxn --[[function: 1363D680]],
    remove = table.remove --[[function: 1363D560]],
    setn = table.setn --[[function: 1363D580]],
    sort = table.sort --[[function: 1363D660]]
  } --[[table: 135629C0]],
  tonumber = tonumber --[[function: 127C8F78]],
  tostring = tostring --[[function: 127C96B8]],
  type = type --[[function: 127C94D8]],
  unpack = unpack --[[function: 127C93F8]],
  xpcall = xpcall --[[function: 127C9638]]
} --[[table: 13562B50]]
local __G={}
_G._G = _G
_G.math.mod = _G.math.fmod
_G.string.gmatch = _G.string.gfind
return _G
end




new functions:
Game: AttachScript, RemoveScript, SetProperty, Time
learn_more
level1
level1
Posts: 36
Joined: Sun Sep 07, 2014 9:18 pm

Re: Lua function list

Postby learn_more » Thu Oct 30, 2014 9:07 pm

updated the first post for a26.

new functions:

Game.BeginSkippable()
Game.EndSkippable()
Game.SetMaterial( float, float, string )
Game.VehicleCallout( string, string )
Objective.Delete( string )
Trigger.Delete( string )


please note, the argument types are automatically determined by my tool, and they are not always 100% correct.
User avatar
aubergine18
level2
level2
Posts: 231
Joined: Sun Jul 05, 2015 3:24 pm

Re: Lua function list

Postby aubergine18 » Tue Oct 27, 2015 6:38 pm

Would it be possible to get an updated list for PA 1.0?

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 4 guests