ScenEdit SetEMCON

From Baloogan Campaign Wiki
Revision as of 08:32, 22 November 2014 by Baloogan (talk | contribs) (Baloogan moved page LuaApi:ScenEdit SetEMCON to ScenEdit SetEMCON without leaving a redirect)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<syntaxhighlight lang="lua"> ScenEdit_SetEMCON(['Side' / 'Mission' / 'Group' / 'Unit'], ['Side Name or ID' / 'Mission Name or ID' / 'Group Name or ID' / 'Unit Name or ID'], ['Radar/Sonar/OECM=Active/Passive;' / 'Inherit'])

--Some usage examples:

ScenEdit_SetEMCON('Side', 'NATO', 'Radar=Active;Sonar=Passive') ScenEdit_SetEMCON('Mission', 'ASW Patrol #1', 'Inherit;Sonar=Active') --<<< This can be useful if you want to ensure a "blank slate" inherited from parent before applying a specific tweak ScenEdit_SetEMCON('Unit', 'Camel 2', 'OECM=Active')

--When changing any of the EMCON settings, you are breaking the EMCON inheritance of the side/mission/group/unit you are applying these changes to.