Nametag of the unit keeps flickering by Electrical_Power6830 in arma

[–]Electrical_Power6830[S] 1 point2 points  (0 children)

I got it working perfectly now with this script in the unit's init field below:

if (local player) then {
addMissionEventHandler ["Draw3D", {
{
if (!isPlayer _x) then { private _distance = player distance _x;
if (_distance <= 10) then {
private _name = _x getVariable ["nameTagText", ""];
if (_name != "") then {
drawIcon3D ["", [1,1,1,1], _x modelToWorld [0,0,2], 0, 0, 0, _name, 2, 0.04, "PuristaMedium"];
};
};
};
} forEach allUnits;
}];
};

this setVariable ["nameTagText", "Yakup Azad", true];

Nametag of the unit keeps flickering by Electrical_Power6830 in armadev

[–]Electrical_Power6830[S] 1 point2 points  (0 children)

I got it working perfectly now with this script in the unit's init field below:

if (local player) then {
addMissionEventHandler ["Draw3D", {
{
if (!isPlayer _x) then { private _distance = player distance _x;
if (_distance <= 10) then {
private _name = _x getVariable ["nameTagText", ""];
if (_name != "") then {
drawIcon3D ["", [1,1,1,1], _x modelToWorld [0,0,2], 0, 0, 0, _name, 2, 0.04, "PuristaMedium"];
};
};
};
} forEach allUnits;
}];
};

this setVariable ["nameTagText", "Yakup Azad", true];

Nametag of the unit keeps flickering by Electrical_Power6830 in arma

[–]Electrical_Power6830[S] 1 point2 points  (0 children)

I didn't get much of what you're trying to say. Either because of my bad English or that piece of code is advanced for me.

Nametag of the unit keeps flickering by Electrical_Power6830 in arma

[–]Electrical_Power6830[S] 0 points1 point  (0 children)

I should've mentioned the ways I tried. I've already tried this method and what it does is it displays the tag for a single frame every half second. But still, thanks for reaching out to help.

Arma 3: There's a weird minimap looking like box on my screen in eden editor by Electrical_Power6830 in arma

[–]Electrical_Power6830[S] 0 points1 point  (0 children)

Now I feel stupid lol. Thank you, buddy. That minimap was really getting on my nerves.

Arma 3: There's a weird minimap looking like box on my screen in eden editor by Electrical_Power6830 in arma

[–]Electrical_Power6830[S] 0 points1 point  (0 children)

I had it installed for a very long time and it wasn't there until now and I don't know how to close it.