Page 1 of 1
Naval SAMs Blinking Difficulty
Posted: Wed Dec 16, 2020 11:38 pm
by SeaQueen
I'm probably going to kick myself for this one, but I've gone over and over it and I can't find any good reason why my naval SAMs aren't blinking in accordance with the LUA scripting I've put into it. I'm sure I'm missing something obvious.
RE: Naval SAMs Blinking Difficulty
Posted: Thu Dec 17, 2020 12:31 am
by boogabooga
I'm looking at it.
I'm assuming by "Naval SAMs", you mean the PRC frigates?
You have code that is operating on the EMCON of some ships whos "Unit Obeys EMCON" box is unchecked. Switch to PRC side and for each of those PRC ships, you need click on the sensors tab and check the "Unit Obeys EMCON" box.
I think that is it, but I will look again if that does not do what you intended.
RE: Naval SAMs Blinking Difficulty
Posted: Fri Dec 18, 2020 9:54 am
by SeaQueen
There's also some DDGs and a CG in there too... but yeah.
RE: Naval SAMs Blinking Difficulty
Posted: Fri Dec 18, 2020 3:42 pm
by boogabooga
So naval classifications aside, did checking the "Unit Obeys EMCON" fix the problem?
RE: Naval SAMs Blinking Difficulty
Posted: Fri Dec 18, 2020 9:55 pm
by SeaQueen
It did! Although I can't for the life of me explain why it ought to make sense. I would have thought that using LUA would have been equivalent to using manual control, but apparently it isn't!
Interesting.
RE: Naval SAMs Blinking Difficulty
Posted: Fri Dec 18, 2020 10:33 pm
by boogabooga
Because (from what I could tell), your code was setting the EMCON of those units, who were set up to ignore EMCON.
I think that setting the sensors manually is a different thing that works outside of EMCON system.