-
Hello, I hope I can ask this here. I have Lua files that sometimes look like this ABS = { or like this EMS = { What is the best way to access this if you don't know what the top lua variable is named? (in these examples "ABS" and "EMS") And what would be the correct way to access Raw? that's my attempts so far
some tips would help me a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In Lua all data is stored in a table(s), which is a combination of an array and dictionary. There are multiple ways to access. C#:
Lua:
|
Beta Was this translation helpful? Give feedback.
In Lua all data is stored in a table(s), which is a combination of an array and dictionary.
There are multiple ways to access.
C#:
var raw = (LuaTable)_environment.EMS.Raw;
with the cast you can switch between dynamic/static.table.ArrayList
ortable.Members
Lua:
local raw = EMS.Raw
foreach
.