Query Unit OutofComms
Posted: Sat Sep 22, 2018 2:49 pm
I can set a unit out of comms using :
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
This returns a bunch of errors including "unable to load one or more of the requested types.".
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.".