actualy ive did somin close 2 dat for my newest mision... (check out my sig line
)
nywayz... on how 2 work it... u got da right guess... usin da neartargets
and da iskindof command heres a small snippet dat will have all da target of certain type in distance of 1000 m of da vehicle in an array...
_type = _this select 0;
_un = _this select 1;
_tars = _un neartargets 1000;
_targets = [];
for [{_i = 0},{_i < count _tars },{_i = _i + 1}] do
{
_target = _tars select _i;
if ((_target select 1) iskindof _type) then {_targets = _targets + [_target select 4]}
};
rest of code....
u exec dif function like dat....
["typeYouAreLookingFor",UnitDaTargetIsNear] execVM "functionname.sqf"
now wat u do after da loop finishes u can use da _targets variables dat will have all da targets wanted
LCD OUT
[edit]
WELCOME 2 OFPEC M8