wolle Posted May 25, 2013 Posted May 25, 2013 So I figured out how to use coalition.addGroup to dynamically add groups, but how do you remove/deactivate such a group? In other words, what's the inverse of the addGroup command, is there a coalition.removeGroup? The regular triggered action "Group deactivate" doesn't work, since a dynamically added group won't appear in the mission editor's drop down menu. [sIGPIC][/sIGPIC] Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro
Grimes Posted May 25, 2013 Posted May 25, 2013 Group.getByName('insertGroupNameHere'):destroy() The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
wolle Posted May 25, 2013 Author Posted May 25, 2013 Group.getByName('insertGroupNameHere'):destroy() Hi Grimes, Unfortunately this does not work (for me at least). In the attached test mission I create a group at mission start, and then destroy it at 10 seconds. You will see an error message pop up at 10 seconds. If you have time, please check it out.test.miz [sIGPIC][/sIGPIC] Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro
SNAFU Posted May 31, 2013 Posted May 31, 2013 I guess you have already noted, but in case not, your group name is 991, not 911. Jsut stumbled over this topic, while looking for addGroup work arounds, so nevermind if this is obsolete. [sIGPIC][/sIGPIC] Unsere Facebook-Seite
Recommended Posts