Lua_System - beyond-all-reason/springrts_engine_wiki_mirror GitHub Wiki

Development < Lua Scripting <

All Lua Contexts

 known_callins = {    ["CallInName"] = { unsynced = boolean, controller = boolean }, (`controller` is true for       all CallIns which's return values are used by the engine for synced code,        e.g. "AllowUnitCreation" is a controller)    ...  }

Special team constants

LuaUI only

LuaGadgets only

Synced

or

 access = {    [ctrl = number teamID,]    [read = number teamID,]    [select = number teamID,]  }

Unsynced

or

 access = {    [ctrl = number teamID,]    (limits Spring.GiveOrderXYZ)    [read = number teamID,]    (limits reading of unit params, e.g. Spring.GetUnitLosState)    [select = number teamID,]    (limits Spring.SelectUnitXYZ)  }

LuaRules only

Synced

category: Lua

category: Lua

⚠️ **GitHub.com Fallback** ⚠️