New to scripting, I've been searching through forums and other sources and can't string together the solution.
Trying to effectively activate a group when condition is met, deactivate when next condition is met, but then (re)activate the same group when the original condition is met.
Starting group in late activation. Testing conditions with flag equals and add radio item for group to initiate the flag. Eventually would like condition to be part of group/unit in zone1, second condition part of group/unit in zone2. (generator lights on in FARP when landing, off after takeoff)
Tried MIST - but there is no de-spawn script that I could find, and multiple uses of the respawn don't seem to activate and deactivate. But tried respawn (worked) DCS action Group Deactivate (worked) then respawn again (doesn't work)
Tried MOOSE - used group.activate (worked), group.deactivate (worked), group.activate agan (doesn't work)
used group.activate (worked), group.destroy (worked), group.activate (doesn't work)
Any help would be much appreciated.