possible bug: 1.11 SR4 - LUA EMCOM (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


snowburn -> possible bug: 1.11 SR4 - LUA EMCOM (9/20/2016 7:34:21 AM)

Hello!

i think i've found a bug, my event SAM TRAP 1 fires and executes the following LUA Script:
ScenEdit_SetEMCON('Unit', 'c96a1b57-17be-401a-9234-397b2c57998f', 'Radar=Active')

this causes the EMCOM of the unit: SAM Bty (SA-2f Guideline [S-75M Volkhov]) to change to active (you can check this using Control + F9) but the Spoon Rest Radar doesnt turn on.

i've attached the scenario where im having the problem, you can test it playing as irak and spawning an enemy AC near the trigger area.

also i've two questions:

-how can i using LUA change the RoE: Weapon control status: air from HOLD to FREE?
-why is #2697 il-76MD Candid B [Baghdad-2/Adnan AEW] clasified as transport instead of AEW?

Thanks :)




michaelm75au -> RE: possible bug: 1.11 SR4 - LUA EMCOM (9/20/2016 12:17:39 PM)

If you tick the unit obeys EMCON, it will turn on the Radar; does not show a tick box on the radar sensor. [Can't recall if having the EMCON ticked is required for the function to work, but it does.]

This would make the unit go free for air:
ScenEdit_SetDoctrine({guid='c96a1b57-17be-401a-9234-397b2c57998f'}, {weapon_control_status_air=0})
---the other values are numbers as well




mikmykWS -> RE: possible bug: 1.11 SR4 - LUA EMCOM (9/20/2016 3:00:35 PM)

quote:

-why is #2697 il-76MD Candid B [Baghdad-2/Adnan AEW] clasified as transport instead of AEW?


Data entry error most likely.

Fixed!

Mike




snowburn -> RE: possible bug: 1.11 SR4 - LUA EMCOM (9/21/2016 6:06:55 AM)

michaelm and mikmyk: Thanks a lot!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.65625