Page 1 of 1

loading units/groups from file by LUA

Posted: Thu Jun 02, 2022 1:35 am
by orca
Is it possible to load units/groups from file by LUA?

Re: loading units/groups from file by LUA

Posted: Thu Jun 02, 2022 4:01 am
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.