Page 1 of 1

LUA to launch boats or aircraft from bases

Posted: Sat Jul 06, 2019 5:20 pm
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

RE: LUA to launch boats or aircraft from bases

Posted: Sun Jul 07, 2019 2:46 am
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.