Search found 4 matches

by ProGenA
Thu Aug 18, 2022 1:01 am
Forum: Lua Legion
Topic: Newby Switch 1 sensor on/off
Replies: 19
Views: 1381

Re: Newby Switch 1 sensor on/off

obeyEMCON is a property of a Unit. This can be set simply by setting the property as it appears to be read/write.

For example,

unit = ScenEdit_GetUnit( { guid='GUIDOFMYUNIT' } )
unit.obeyEMCON = false -- do not obey EMCON
by ProGenA
Thu Aug 18, 2022 12:45 am
Forum: Lua Legion
Topic: Newby Switch 1 sensor on/off
Replies: 19
Views: 1381

Re: Newby Switch 1 sensor on/off

Correction: Although you can set this and you can read that it changes, EMCON will overrule these setting as soon as the simulation starts. For this to work, it is necessary to uncheck "Unit obeys EMCON". I have not found a Lua command for accomplishing this yet.
by ProGenA
Wed Aug 17, 2022 10:13 pm
Forum: Lua Legion
Topic: Newby Switch 1 sensor on/off
Replies: 19
Views: 1381

Re: Newby Switch 1 sensor on/off

There actually is a way to turn an individual sensor on or off using Lua. The documentation for this feature in the Command Lua Docs is light but a method can be divined using the note provided in http://commandlua.github.io/#table_Sensor.

The method is to set the 'sensors' property of the unit to ...
by ProGenA
Wed May 25, 2022 3:40 am
Forum: Lua Legion
Topic: Set OutOfComms
Replies: 3
Views: 432

Re: Set OutOfComms

I reviewed many discussions about the OutOfComms feature. I was having difficulty until I watched video #24 Communications Modeling on the Matrix Games Pro Software channel on YouTube. During the overview the need for enabling the "Communications Disruption" feature is mentioned. Since I didn't come ...

Go to advanced search