Riffler 10 Posted May 22, 2011 (edited) Hi guys, i`d like the enemy/friendly-tag from both units are show permanent (on map and the red/green circle in game). How i can do this ? And how i can change the Tag range too? Edited May 22, 2011 by Riffler Share this post Link to post Share on other sites
bigshotking 11 Posted May 23, 2011 Are you asking for markers to be shown where BLUFOR and OPFOR are on the map? Share this post Link to post Share on other sites
Riffler 10 Posted May 23, 2011 exactly -> permanent marker from both teams on map and ingame (this green / red circles around the players) maybe with a greater distance too. I have search in here and google but i didn`t found anything about this theme Share this post Link to post Share on other sites
demonized 20 Posted May 23, 2011 (edited) well,difficulty setting sdoes that i think on easy. but if you want it on harder dificultys a script is the way. here is 2 sets of scripts you can use, one for groups with marker on alive leader only, second is marker on every single unit, also look at setMarkerType to change type of marker as it is dot for now. Here is other types of markers to choose from. /* tracking markers of all GROUPS on map, less CPU demanding on many units. by Demonized save as track.sqf and execute in trigger or init.sqf with: _null = [] execVM "track.sqf"; */ _array = []; while {true} do { { _group = _x; _leader = leader _group; if ((side _leader) == civilian OR ({_x in _array} count units _group) != 0) exitWith {}; hint "creating marker"; sleep 1; { _array = _array + [_x]; } foreach units _group; _name = format["%1",_leader]; _marker = createMarker[_name,getPos _leader]; _marker setMarkerShape "ICON"; _marker setMarkerType "DOT"; _color = switch (side _leader) do { case west: {"ColorBlue"}; case east: {"ColorRed"}; case resistance: {"ColorOrange"}; }; _marker setMarkerColor _color; _track = [_marker,_x] spawn { _marker = _this select 0; _group = _this select 1; while {({alive _x} count units _group) != 0} do { _marker setMarkerPos (getPos (vehicle (leader _group))); sleep 1; }; deleteMarker _marker; }; } foreach allGroups; { if (!alive _x) then {_array = _array - [_x]}; } foreach _array; sleep 10; }; /* tracking markers of all UNITS on map, more CPU demanding on many units. by Demonized save as track.sqf and execute in trigger or init.sqf with: _null = [] execVM "track.sqf"; */ _array = []; while {true} do { { if ((side _x) == civilian OR _x in _array) exitWith {}; hint "creating marker"; sleep 1; _array = _array + [_x]; _name = format["%1",_x]; _marker = createMarker[_name,getPos _x]; _marker setMarkerShape "ICON"; _marker setMarkerType "DOT"; _color = switch (side _x) do { case west: {"ColorBlue"}; case east: {"ColorRed"}; case resistance: {"ColorOrange"}; }; _marker setMarkerColor _color; _track = [_marker,_x] spawn { _marker = _this select 0; _unit = _this select 1; while {alive _unit} do { _marker setMarkerPos (getPos (vehicle _unit)); sleep 1; }; deleteMarker _marker; }; } foreach allUnits; { if (!alive _x) then {_array = _array - [_x]}; } foreach _array; sleep 10; }; Edited May 23, 2011 by Demonized Share this post Link to post Share on other sites
Riffler 10 Posted May 25, 2011 thanks Demonized! both scripts run good, but the cpu-time was /(§&()=§ on my athlon X2 :cool: ok, this pc its for testing only and ithe problems with cpu load want be better on the real gameserver i think. can you tell me for now, how i can change the range of the enemy-tag-circle in game. where i can found this paramater (maybe)? greetings from sunny germany ;) Share this post Link to post Share on other sites