Geoffropi -> RE: WIP - Intermittent Emission (3/26/2021 10:06:45 AM)
|
Hello, quote:
Will ALL of the radars on one side blink on and off together, or is it radar-by-radar? It is for each individual unit/group We did some work on it, with better control on which type(s) of detected contact will "wake" the unit, added a custom preset, group Emcon preset, and inheritance from group toggle. [image]https://i.ibb.co/mH4CPLq/V2b.png[/image] As for Lua binding, these are the currently available functions, feel free to post your requests if there are specifics functions you would like to see. ClearUnitEmconConfigs(UnitID) -- Reinitialise the unit or group with default values for all config presets Exemple : ClearUnitEmconConfigs("TestUnit") ClearAllSideUnitsEmconConfigs(SideNameOrID) --Does the same as above but for all active units (including groups) of a side Exemple : ClearAllSideUnitsEmconConfigs("Portugal") DuplicateEmconConfigToUnit(PresetAlertID, SourceAUNameOrID, TargetAUNameOrID) -- Copy and paste a config preset from a source unit or group to a target unit or group Exemple : DuplicateEmconConfigToUnit("Yellow", "TestUnit2", "TestUnit") DuplicateEmconConfigtoSide(PresetAlertID, SourceAUNameOrID, TargetSideNameOrID) --Copy and paste a config preset from a unit to all units of a side Exemple : DuplicateEmconConfigtoSide("Yellow", "TestUnit2", "Portugal") SetUnitIntermittentEmissionConfig(AUNameOrID, PresetAlertID, ConfigurationID, Value) --Set one of the intermittent emission config for a selected unit or group and alert preset Exemple : SetUnitIntermittentEmissionConfig("TestUnit", "Yellow", "SleepModeDelay", 20) SwitchUnitIntermittentEmission(AUNameOrID, PresetAlertID, Switch) -- A shortcut to call SetUnitIntermittentEmissionConfig(AUNameOrID, PresetAlertID, "UseEmissionInterval", Switch, ScenarioContext) Exemple : SwitchUnitIntermittentEmission("TestUnit","Red",1) SetSideEmconAlertness(SideNameOrID, AlertID) --Set the side's Emcon alert level (Green, Blue, Yellow,Orange, Red) Exemple : SetSideEmconAlertness("Portugal","Yellow")
|
|
|
|