Naval SAMs Blinking Difficulty

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
SeaQueen
Posts: 1436
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

Naval SAMs Blinking Difficulty

Post 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.

Attachments
HainanIsl..0.1.scen.zip
(271.91 KiB) Downloaded 26 times
boogabooga
Posts: 1021
Joined: Wed Jul 18, 2018 12:05 am

RE: Naval SAMs Blinking Difficulty

Post 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.
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
User avatar
SeaQueen
Posts: 1436
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

RE: Naval SAMs Blinking Difficulty

Post by SeaQueen »

There's also some DDGs and a CG in there too... but yeah.
boogabooga
Posts: 1021
Joined: Wed Jul 18, 2018 12:05 am

RE: Naval SAMs Blinking Difficulty

Post by boogabooga »

So naval classifications aside, did checking the "Unit Obeys EMCON" fix the problem?
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
User avatar
SeaQueen
Posts: 1436
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

RE: Naval SAMs Blinking Difficulty

Post 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.
boogabooga
Posts: 1021
Joined: Wed Jul 18, 2018 12:05 am

RE: Naval SAMs Blinking Difficulty

Post 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.
The boogabooga doctrine for CMO: Any intentional human intervention needs to be able to completely and reliably over-ride anything that the AI is doing at any time.
Post Reply

Return to “Lua Legion”