suma 8 Posted March 9, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (PiNs_Da_Smoka @ Mar. 08 2002,22:45)</td></tr><tr><td id="QUOTE">How about a small command called "Groupdestroy" or something like that.<span id='postcolor'> This command will not be added, as it would probaby cause a lot of crashes. In OFP code there are many places where program expect that group will never be destroyed. Instead I suggest you group recycling. I think it is not really difficult to create a script that will act as a "group garbage collector" and will provide you one of the groups that are empty and controlled by the collector. Share this post Link to post Share on other sites
PiNs_Da_Smoka 0 Posted March 9, 2002 Hmm....could you elaborate on that??? Or maybe, in theory, something like this could work.... @!alive guy1 && !alive guy2 && !alive guy3 "SoldierWB" CreateUnit [getmarkerpos "here",groupalpha] "SoldierWB" CreateUnit [getmarkerpos "here",groupalpha] "SoldierWB" CreateUnit [getmarkerpos "here",groupalpha] I mean, i'm sure there is an easier way to do this, like using "foreach" to see if the whole group is dead and then creating the new set of soldiers for the group. Becuase, like you said, the group is always there. So, even if the leader dies, you can spawn people into the group, right? Once again, i jsut threw this together, and there are, more then likely, better ways to do this. But, is this what you mean by "recycling" Share this post Link to post Share on other sites
suma 8 Posted March 9, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (PiNs_Da_Smoka @ Mar. 09 2002,02:57)</td></tr><tr><td id="QUOTE">But, is this what you mean by "recycling"<span id='postcolor'> By recycling I mean using the same group several times. Instead of creating a new group (which is also not an easy thing, as the only way to create groups is with xxx join grpNull command), create a pool of empty groups, whenever you detect a group that you no longer need, add it to this pool and when you need a new group, take it from this pool. You will probably want to initialize this pool by inserting several empty groups created on initialization the way we discussed before. To check if group is empty you can use count units groupAlpha==0. Share this post Link to post Share on other sites
InqWiper 0 Posted March 14, 2002 I got it working now, thx Share this post Link to post Share on other sites
seedhe 0 Posted April 15, 2002 I was having the same trouble others have mentioned with createunit and found that the unit that you create to start a group with ( eg. "groupAlpha = group this" in the init field) cannot be a private. I used the "Rank -Captain" and "Unit - Officer". My head hurts too much now after trying to get this working all night to try other combination of ranks but I'm sure others will work. Share this post Link to post Share on other sites