Skip to content

Instantly share code, notes, and snippets.

@jarpy
Last active September 16, 2020 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarpy/3560344bee0c5d8f488c226ce8f337fa to your computer and use it in GitHub Desktop.
Save jarpy/3560344bee0c5d8f488c226ce8f337fa to your computer and use it in GitHub Desktop.
local function groupIsDead(groupName) -- a certain bug hasn't been fixed, so I have to use this instead.
if (Group.getByName(groupName) and ( Group.getByName(groupName):isExist() == false or #Group.getByName(groupName):getUnits() < 1)) or not Group.getByName(groupName) then
return true
end
return false
end
if groupIsDead('TEST1') then
mist.respawnGroup('TEST1', true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment