possible bug: 1.11 SR4 - LUA EMCOM

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
User avatar
snowburn
Posts: 188
Joined: Mon Sep 23, 2013 9:10 pm
Location: Bovril, Argentina

possible bug: 1.11 SR4 - LUA EMCOM

Post 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 :)
Attachments
ScudHunt.zip
(96.07 KiB) Downloaded 10 times
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: possible bug: 1.11 SR4 - LUA EMCOM

Post 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
Michael
mikmykWS
Posts: 7185
Joined: Tue Mar 22, 2005 4:34 pm

RE: possible bug: 1.11 SR4 - LUA EMCOM

Post 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
User avatar
snowburn
Posts: 188
Joined: Mon Sep 23, 2013 9:10 pm
Location: Bovril, Argentina

RE: possible bug: 1.11 SR4 - LUA EMCOM

Post by snowburn »

michaelm and mikmyk: Thanks a lot!
Post Reply

Return to “Tech Support”