Barba-negra 117 Posted July 29, 2019 Hello Bohemian friends, greetings and a hug to all, I am here again to ask for help, I am trying to make a visual hydrofono system, which identifies the characteristics of an enemy ship in motion, but I have had several problems and I still can't do it, in the search for information and compiled and managed to make a script that meets the requirements, its operation is to make it possible for the designator to show me a series of data collected when I mark the target ship with laser, but When executing it, it gives me the image of information about data not found, please ask for help this is the script: fnc_Contact = { _testing = param [6,false]; _wPos = nil; _laser = laserTarget player; if(isNull _laser) then { _wPos = screenToWorld [0.5,0.5]; } else { _wPos = _laser; }; selPos = createAgent ["Logic", _wPos, [], 0, "FORM"]; _target = objNull; if (isNull _laser) then { _nearObj = nearestObjects [selPos, ["Ship"], _radiusSearch]; if(count _nearObj == 0) then { strikeAllowed = false; hint "no objetivo"; } else { strikeAllowed = true; //Selecting random target _target = selectRandom _nearObj; }; } else { strikeAllowed = true; _target = selPos; }; if(strikeAllowed) then { _name = getText (configFile >> "CfgVehicles" >> typeOf _Target >> "displayName"); _tonnage = getText (configFile >> "CfgVehicles" >> typeOf _Target >> "tonnage"); _side = side _Target; _D = _target distance _Target; _dir = direction _target; _knots = (speed _target) / 1.85; _speedmode = speedMode _target; while {true} do { if(!_testing) then { hintSilent format["*Submarine*%0 \n\nShip-Type\n%1 \n\nSide\n%2 \n\nTonnage\n%3 \n\nTarget-Distance\n%4 \n\nTarget-speed\n%5%6 \n\nTarget-speed-mod\n%7 \n\nTarget-direction\n%8%9",_name,_side,_tonnage,_D,_knots,"-knots",_speedmode,_dir,"-Deg"]; }; }; }; }; Share this post Link to post Share on other sites