OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: surre on 26 Apr 2003, 21:56:44

Title: Probably an easy to solve question about grouping?
Post by: surre on 26 Apr 2003, 21:56:44
I want to make two radiocommands. One that will make the players group, say 6 men, split into 2 3man squads and the other will rejoin the two squads into one large group. I want to be able to use the commands several times. I can make two small groups join into one large with a trigger activated by radioalpha like this; "[ap2,ap3,ap4] join ap1" but what is the command for splitting the squads? Ive tried the commandreference but I dont know what to look for...any ideas would be welcome, thanks beforehand :)
Title: Re:Probably an easy to solve question about grouping?
Post by: jojojoni on 26 Apr 2003, 23:15:35
If you have this group: [ap1,ap2,ap3,ap4], and you want to split it, write this at your trigger:

[ap4] join grpnull; [ap3] join group ap4

That way you would split the squad in two groups:
 [ap1,ap2]
 [ap3,ap4]
Title: Re:Probably an easy to solve question about grouping?
Post by: surre on 26 Apr 2003, 23:30:56
Works like a charm! Thank you very much Jo-Jo-Joni.