Code: Select all
ScenEdit_SetUnit({unitname="USS Barry", OutOfComms="True"})
This works and the unit is out of comms.
Is there a way to use Lua to query if a unit is outofcomms?
I've tried
Code: Select all
local unit = ScenEdit_GetUnit({side="OPFOR", unitname="USS Barry"})
print(unit.outofcomms)
This returns a bunch of errors including "unable to load one or more of the requested types.".