diff --git a/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.lua b/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.lua new file mode 100644 index 0000000..4e8a7af --- /dev/null +++ b/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.lua @@ -0,0 +1,28 @@ +--- +-- Author: FlightControl +-- Created: 10.12.2017 +-- Contributors: kaltokri +-- Modified: 27.02.2024 +-- +-- # Documentation: +-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Wrapper.Group.html +-- +-- # Description: +-- This mission will show the option to set the alarm state of a group to RED or GREEN. +-- Both options are tested with one group for each. +-- Please check the dcs.log in case of errors, and the time the group reacts to the approaching target. +-- The Red State Group should react much faster than the Green State Group. +-- State Blue is attacking. State Green is defending. +-- The south SAM is "Red State". +-- +-- # Guide: +-- 1. Start the mission. +-- 2. Watch the situation on F10 map. + +-- Find the SAMs and create GROUP objects. +RedStateGroup = GROUP:FindByName( "Red State" ) +GreenStateGroup = GROUP:FindByName( "Green State" ) + +-- St the states. +RedStateGroup:OptionAlarmStateRed() +GreenStateGroup:OptionAlarmStateGreen() diff --git a/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.miz b/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.miz new file mode 100644 index 0000000..d69bd5c Binary files /dev/null and b/Wrapper/Group/900-Option-Green-and-Red-State/GRP-900-Option-Green-and-Red-State.miz differ