I use to call the following function to get an array of radios the unit (_u) has:
You can then cycle through the returned array and remove the radio(s) using the 'removeWeapon' command.Code:private ["_u","_ret"]; _u = _this select 0; _ret = []; { if (getText(configFile >> "CfgWeapons" >> _x >> "simulation") == "ItemRadio") then {_ret = _ret + [_x];}; } forEach weapons _u; _ret
There used to be a function quite like this in ACRE, but it is/was broken, that's why I used my own ever since.
Cheers,
D.
HOME 
Reply With Quote



