LUA to launch boats or aircraft from bases

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
tmoilanen
Posts: 111
Joined: Wed Oct 19, 2011 4:28 pm

LUA to launch boats or aircraft from bases

Post by tmoilanen »

Is there a way to launch boats or aircraft that are assigned to a base via LUA?

I can determine the condition using the code below, but both condition and condition_v are READONLY attributes.

u = ScenEdit_GetUnit({name="USS San Jacinto"})
print(u)
print(u.condition)

Any help would be appreciated...tm
User avatar
michaelm75au
Posts: 12464
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: LUA to launch boats or aircraft from bases

Post by michaelm75au »

There isn't really an option to do this directly. It does sound like a 'sound' idea though; would complement unit RTB.
So I will look at adding a 'launch' option to the unit wrapper for future release. This would handle both aircraft and boat units.

Michael
Post Reply

Return to “Lua Legion”