Jump to content
Sign in to follow this  
vostov

this used to remove NVGs on a given side efficently

Recommended Posts

{

if((side _x == independent)) then {

_x unassignItem "NVGoggles";

_x removeItem "NVGoggles";

};

} foreach (allUnits);

I'd attach it to a waypoint or put it on a countdown or even a radio trigger. Now it doesn't seem to work. Any ideas?

Share this post


Link to post
Share on other sites

Classnames were changed for dress up reasons:

{
if(side _x == independent) then {
_x unassignItem "NVGoggles_INDEP";
_x removeItem "NVGoggles_INDEP";
};
} foreach (allUnits); 

{
if(side _x == opfor) then {
_x unassignItem "NVGoggles_OPFOR";
_x removeItem "NVGoggles_OPFOR";
};
} foreach (allUnits); 

{
if(side _x == blufor) then {
_x unassignItem "NVGoggles";
_x removeItem "NVGoggles";
};
} foreach (allUnits); 

Once the next stable patch hits though you'll be able to just do:

_x unlinkItem "NVGoggles_INDEP";

or even

_x removeWeapon "NVGoggles_INDEP";

Just to keep the confusion level high.

Share this post


Link to post
Share on other sites

Thanks again as usual. You seem to be the person most likely to reply. I even thought about directing the question towards you by name, lol.

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  

×