Jump to content

Recommended Posts

Posted

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

Posted
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

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...