Last active
September 16, 2020 21:27
-
-
Save jarpy/3560344bee0c5d8f488c226ce8f337fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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