Hey Grimes:
Sorry for the misunderstanding. Being an 'old' VB coder, I'm used to getting code snippets that are generic in nature, and then having to tweak them for my specific situation.
I'm not used to getting code that's ready to go out the gate. VERY NICE!!!! I saw groupName, and instictively shoved in the 'group name'. Sorry about that!!!
OK....I added the code, as is, per your instructions, but I'm still getting a script error. What appears to be happening is, MIST isn't loading.
Here's the scenerio;
1st trigger: TYPE: Mission Start, CONDITIONS: Time More Than 1, ACTIONS: Do Script File - mistv3_7_51.lua
2nd trigger: TYPE: Mission Start, CONDITIONS: Time Less Than 10, ACTIONS: Do Script - function groupIsDead (as is)
3rd trigger: TYPE: Once, CONDITIONS: Unit Dead, ACTIONS: Do Script - if groupIsDead('F-15 Group01') == true then mist.respawnGroup('F-15 Group01', true) end
I fly this, crash the aircraft, and get the following script error.
[string "C:\users\jd\AppData\Loacal\Temp\DCS\/~mis00001A4A"]:1: attempt to call global 'groupIsDead' (a nil value)
stack traceback: [C]:in function 'grouIsDead'
[string "C:\users\jd\AppData\Loacal\Temp\DCS\/~mis00001A4A"]:1: in mainchunk
So then, for sh*ts and giggles, I removed the 1st trigger, which loads MIST, and flew it again. Low and behold, I get the same error.
It's acting like MIST isn't loading, and causing the script error.