Author: Shawn Clarke (wernt34)
Author Website:

Short description: Draws text above friendly units and squad members.
Date: 2018-09-26 22:32
Submitted by: Pvt_Joker


Comments: (1)
Rating:



 

CODE:
FILENAME: initPlayerLocal.sqf

["uniqueID", "onEachFrame",{
	{
	if (side _x == playerSide && _x distance player < 100) then { // Is the unit on the player's side and less then x meters away?
	 	drawIcon3D ["", [0,1,0,1], _x modelToWorldVisual [0,0,2], 0, 0, 0, "Friendly", 1, 0.05, "PuristaMedium"]; // Draw Text on friendlies
	if (_x in units player) then {
		drawIcon3D ["", [0,0,1,1], _x modelToWorldVisual [0,0,1.5], 0, 0, 0, "Squad Member", 1, 0.05, "PuristaMedium"]; // Draw Text on Squad members ONLY
	}
	}
	} forEach allUnits;
}] call BIS_fnc_addStackedEventHandler;




Tags: No tags