set home base

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

set home base

Post by orca »

Is there a way to set a unit's home base using LUA? If yes can someone provide an example code?

Thanks
User avatar
kevinkins
Posts: 2465
Joined: Wed Mar 08, 2006 11:54 am

RE: set home base

Post by kevinkins »

Best if the exact syntax comes from one of the experts, but in the meantime check out the ScenEdit_SetUnit function in the lua documentation:

http://commandlua.github.io/index.html#ScenEdit_SetUnit

Under the Unit descriptor, there is a "base" parameter. This might get you started.

Kevin
“The study of history lies at the foundation of all sound military conclusions and practice.”
Alfred Thayer Mahan
Post Reply

Return to “Lua Legion”