Jump to content
Sign in to follow this  
GodsFist

Remove Handgrenades group-spawn

Recommended Posts

Hello guys, I have a question for my single player map.

I've made a group-spawn

 

_nvaAttack1Village = [getmarkerpos "nvaAttackVillage1Marker", EAST, ["uns_men_NVA_65_off","uns_men_NVA_65_com","uns_men_NVA_65_nco","uns_men_NVA_65_HMG"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
_nvaAttackVillage1Wp1 = _nvaAttack1Village addWaypoint [getmarkerpos "nvaAttackVillage1Wp1", 0];

_nvaAttackVillage1Wp1 setWaypointSpeed "Full";
_nvaAttackVillage1Wp1 setWaypointBehaviour "AWARE";
_nvaAttackVillage1Wp1 setWaypointFormation "FILE";
_nvaAttackVillage1Wp1 setWaypointCombatMode "RED";

 

But when they spawn at marker they are throwing a lot of  hand-grenades.
I've tried a few option from the internet like:

 

_nvaAttack1Village removeMagazines "HandGrenade"; 

 

And:

 

{    
    
if (nvaAttack1Village == group _x) then {
       
       _x removeMagazine "HandGrenade";
       
    };
} foreach units nvaAttack1Village;

 

but nothing works, can someone PLEASE help me ???

Thank you !!!

 

 

Share this post


Link to post
Share on other sites

Never mind I figured it out myself.

 

_nvaAttack5Village = [getmarkerpos "nvaAttackVillage5Marker", EAST, ["uns_men_NVA_65_off","uns_men_NVA_65_com","uns_men_NVA_65_nco","uns_men_NVA_65_HMG"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
_nvaAttackVillage5Wp1 = _nvaAttack5Village addWaypoint [getmarkerpos "nvaAttackVillage5Wp1", 0];

{    removeAllWeapons _x;
    removeAllItems _x;
    removeBackpack _x;
    
    _x addWeapon "uns_ak47";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";
    _x addMagazine "uns_ak47mag";

}     foreach units _nvaAttack5Village;


_nvaAttackVillage1Wp1 setWaypointType "SAD";
_nvaAttackVillage1Wp1 setWaypointSpeed "Full";
_nvaAttackVillage1Wp1 setWaypointBehaviour "AWARE";
_nvaAttackVillage1Wp1 setWaypointFormation "FILE";
_nvaAttackVillage1Wp1 setWaypointCombatMode "RED";
 

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
Sign in to follow this  

×