dachevs 1 Posted April 22, 2008 How do I make markers on players? would this work? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _marker= createMarkerLocal [Civilian1, position Civ1 ] and so on for the different players? Share this post Link to post Share on other sites
CarlGustaffa 4 Posted April 22, 2008 Download the MP Domination mission and check out the x_setVehicleMarker.sqf script. Don't think you need to create the markers, only update their position locally on all clients. Share this post Link to post Share on other sites
mattxr 9 Posted April 24, 2008 Run With in the init nul = execVM "Markers.sqf"; Markers.sqf Quote[/b] ]sleep 5; _ind = 0; while {true} do { for [{_i = 0}, {_i < _ind}, {_i = _i + 1}] do { deleteMarkerLocal format["%1", _i]; }; _list = list world; _ind = 0; { if ((alive _x) && (side _x == side player)) then { if ((_x isKindOf "Man") && (vehicle _x == _x)) then { _index = format["%1", _ind]; createMarkerLocal [_index, getpos _x]; _index setMarkerShapeLocal "ICON"; _index setMarkerTypeLocal "DOT"; _index setMarkerSizeLocal [0.5, 0.5]; _index setMarkerTextLocal name _x; if (name _x == name player) then { _index setMarkerColorLocal "ColorGreen"; } else { _index setMarkerColorLocal "ColorYellow"; }; _ind = _ind + 1; } else { _d = 0; { _index = format["%1", _ind]; createMarkerLocal [_index, [getpos vehicle _x select 0, (getpos vehicle _x select 1) - _d]]; _index setMarkerShapeLocal "ICON"; _index setMarkerTypeLocal "DOT"; if (_d > 0) then { _index setMarkerSizeLocal [0.5, 0]; } else { _index setMarkerSizeLocal [0.5, 0.5]; }; _index setMarkerTextLocal format["%1 [%2]", name _x, typeOf vehicle _x]; if (name _x == name player) then { _index setMarkerColorLocal "ColorGreen"; } else { _index setMarkerColorLocal "ColorYellow"; }; _ind = _ind + 1; _d = _d + 40; } foreach crew _x; }; }; } foreach _list; sleep 1; }; Share this post Link to post Share on other sites