Page 1 of 1

possible bug: 1.11 SR4 - LUA EMCOM

Posted: Tue Sep 20, 2016 4:34 am
by snowburn
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 :)

RE: possible bug: 1.11 SR4 - LUA EMCOM

Posted: Tue Sep 20, 2016 9:17 am
by michaelm75au
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

RE: possible bug: 1.11 SR4 - LUA EMCOM

Posted: Tue Sep 20, 2016 12:00 pm
by mikmykWS
-why is #2697 il-76MD Candid B [Baghdad-2/Adnan AEW] clasified as transport instead of AEW?

Data entry error most likely.

Fixed!

Mike

RE: possible bug: 1.11 SR4 - LUA EMCOM

Posted: Wed Sep 21, 2016 3:06 am
by snowburn
michaelm and mikmyk: Thanks a lot!