Jump to content

Recommended Posts

Hello everyone, I have a question.

I want to make mission with targets identify looks like in A2 ACR DLC (via Rangefinder\Laser Designator), but don't know how.

Can someone suggest how I can implement this?

Thanks!

 

Spoiler

9nZzIkhS6GY.jpg

2GAUOGR8e98.jpg

 

Share this post


Link to post
Share on other sites

change the image to one that more resembles that look your after and change the text to green

 

result:

marker.png

 

script:

rangeLayer = "outputlyer" call BIS_fnc_rscLayer;
xRangeL = 0.59 * safezoneW + safezoneX;
yRangeL = 0.65 * safezoneH + safezoneY;

onEachFrame
{
	if (cursorTarget isKindOf "Man" AND !(side cursorTarget isEqualTo side player)) then
	{
		_pos = eyePos cursorTarget;
		drawIcon3D ["a3\ui_f\data\gui\Rsc\RscDisplayArsenal\radio_ca.paa", [0,1,0,0.5], ASLToAGL _pos, 0.7, 0.7, 0, "", 1, 0.05, "TahomaB"];
		if (cameraView isEqualTo "GUNNER") then
		{
			_str = format ["%1m", round (cursorTarget distance player)];
			[_str, xRangeL, yRangeL, 0, 0, 0, rangeLayer] spawn BIS_fnc_dynamicText;
		};
	};
};

 

  • Like 2

Share this post


Link to post
Share on other sites
10 hours ago, gokitty1199 said:

change the image to one that more resembles that look your after and change the text to green


Thank you for answer, but it's possible to make progress bar when you watching to units and do check for unit(s) with specific names?

Also, how I can make work script only when I looikng in laser designator?

Thanks!

Share this post


Link to post
Share on other sites
6 hours ago, Ulmann said:


Thank you for answer, but it's possible to make progress bar when you watching to units and do check for unit(s) with specific names?

Also, how I can make work script only when I looikng in laser designator?

Thanks!

yes. you could make a loop that increments a variable while looking at the target and slowly increases the alpha of the icon, and after the time is up have it check if the unit equals a name from a list of your choice.

 

rangeLayer = "outputlyer" call BIS_fnc_rscLayer;
xRangeL = 0.59 * safezoneW + safezoneX;
yRangeL = 0.65 * safezoneH + safezoneY;

onEachFrame
{
	if (cursorTarget isKindOf "Man" AND !(side cursorTarget isEqualTo side player)) then
	{
		if (currentWeapon player == "Laserdesignator" && {cameraView == "Gunner"}) then
       	 	{
			_pos = eyePos cursorTarget;
			drawIcon3D ["a3\ui_f\data\gui\Rsc\RscDisplayArsenal\radio_ca.paa", [0,1,0,0.5], ASLToAGL _pos, 0.7, 0.7, 0, "", 1, 0.05, "TahomaB"];
			_str = format ["%1m", round (cursorTarget distance player)];
			[_str, xRangeL, yRangeL, 0, 0, 0, rangeLayer] spawn BIS_fnc_dynamicText;
        	};
	};
};

 

  • Thanks 1

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

×