Jump to content
Play3r

[SOLVED] Delete a Spawned Group

Recommended Posts

i want to delete a group that i have spawned in with the BIS_fnc_spawnGroup, 

my problem is that i can not use a trigger to delete the group, the group have a HVT that i need to use when the group is deleted.

 

i have tried to look at the Wiki but can't find anything about it.

 

// Play3r 

Share this post


Link to post
Share on other sites

It's not exactly clear what you want to do, but my first thought is to have the HVT leave the group so you can delete it. There are multiple ways to do this, here's one:

[HVT] join grpNull; //HVT is moved into a newly generated group
{<code>}//get rid of other members of group as desired
groupName deleteGroupWhenEmpty true;

 

Share this post


Link to post
Share on other sites
1 minute ago, Harzach said:

It's not exactly clear what you want to do, but my first thought is to have the HVT leave the group so you can delete it. There are multiple ways to do this, here's one:


[HVT] join grpNull; //HVT is moved into a newly generated group
{<code>}//get rid of other members of group as desired
groupName deleteGroupWhenEmpty true;

 

yes i have [HVT] join GroupNull.

But how do i delete the rest of the group when he leaves 

 

P3R_Attackgroup =[getMarkerPos "MARK1", WEST,
    ["B_Patrol_Soldier_TL_F",
        "B_Patrol_Medic_F",
        "B_Patrol_HeavyGunner_F",
        "B_Patrol_Soldier_AR_F"]

    ,[],[],[],[],[],340] call BIS_fnc_spawnGroup;

 

this is my Code.
 

Share this post


Link to post
Share on other sites
{deleteVehicle _x} forEach units P3R_Attackgroup;

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites
Just now, Harzach said:

{deleteVehicle _x} forEach units P3R_Attackgroup;

F..k that simpel LOL..😵

Thanks for help..👍

 

 

  • Haha 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×