MIST groupIsDead

From DCS World Wiki - Hoggitworld.com


mist.groupIsDead

Added with: Mist 4.5
Description
Returns true or false based on if the passed group is dead or alive. It is a slightly more reliable means of checking compared to just checking if not Group.getByName('whatever') then.


    true if the group is dead
    false if group is alive
Syntax
boolean mist.groupIsDead(string groupName )
Valid Input Values:
group = 'myGroup'
Return value:
boolean
Return example:
true
Usage Examples:
The following could be used to check if a group is dead and then to respawn it.


   if mist.groupIsDead('tankerYouProbablyFlewInto') == true then
        mist.respawnGroup('tankerYouProbablyFlewInto', true)
   end
Notes:
Related Functions
getGroupData, getCurrentGroupData, getGroupTable getGroupPoints, getGroupRoute, getLeadPos, getAvgPos, getPayload, getGroupPayload, randomizeGroupOrder, groupIsDead

Scripting Engine

MIST Root Page