loading units/groups from file by LUA

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
orca
Posts: 545
Joined: Wed Nov 06, 2013 4:59 pm

loading units/groups from file by LUA

Post by orca »

Is it possible to load units/groups from file by LUA?
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: loading units/groups from file by LUA

Post by KnightHawk75 »

option1 ScenEdit_ImportInst() to execute .ini that creates units.

option2 ScenEdit_UpdateUnit() can be used after creating a unit to modify it, ie create the unit, apply host of changes to it afterward by using same matching guid in delta .ini as used to create unit.

option3 Script said units, groups,etc yourself, storing information needed for their creation in scene itself (tables), or stored in script files executed on demand with ScenEdit_RunScript().

option 4 Professional Edition - Gives you access to file system in less highly restricted way so your can read\write whatever you want, more or less however you want.
Post Reply

Return to “Lua Legion”