Forum Jump :

Author Message


Posts: 28
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-01-23 02:27        
     
As the description says I am looking for a way to delete a squad but leave the leader. The reason i want to do this is on a mission i am making an entire company(4 platoons) is in an armoured convoy. The player's group splits and the rest of the company is never seen again, but I still want the groups to communicate as if there are engaged in the assault. I would prefer the script version and i would imagine(but not entirely sure) it would use some form of deleteVehicle.

Thanks in advance for any help.


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 57
In-game name: Kobayashi Maru

 
#2 Posted at 2016-01-23 03:26        
     
What have you scripted or edited right now?
If yo want to delete units in a group but leader:

identify the group : the handle my_group for example if you spawn it,

or in an init field of an edited unit belonging to the group :
my_group = group this;
(feel free to change the name!)
then, when you need it (via a trigger activation or a remote script}:
{deleteVehicle _x} foreach (units my_group) - [leader my_group];

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS