//Map Key
case (actionKeys "ShowMap" select 0): {
switch (playerSide) do {
case west: {if (!visibleMap) then {[] spawn life_fnc_copMarkers;}};
case independent: {if (!visibleMap) then {[] spawn life_fnc_medicMarkers;}};
case civilian: {if (!visibleMap) then {[] spawn life_fnc_civMarkers;}};
};
if (count life_trackers > 0) then {
if (!visibleMap) then {[] spawn life_fnc_gpsMarkers;};
};
};
Yes mais ça fonctionnais pourtantHello, as tu Ace d'installé ?
{
_name = _x getVariable "name";
_down = _x getVariable ["Revive",false];
if (!isNil "_name" && !_down) then {
_units pushBack _x;
};
} forEach allDeadMen;
{
_marker = createMarkerLocal [format ["%1_dead_marker",_x],visiblePosition _x];
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerTypeLocal "loc_Hospital";
_marker setMarkerTextLocal format ["%1",(_x getVariable ["name","Unknown Player"])];
_markers pushBack _marker;
} forEach _units;
MedicMarkers:Est-ce que tu as bien ce code dans ton fn_medicMarkers.sqf ?
Code:{ _name = _x getVariable "name"; _down = _x getVariable ["Revive",false]; if (!isNil "_name" && !_down) then { _units pushBack _x; }; } forEach allDeadMen; { _marker = createMarkerLocal [format ["%1_dead_marker",_x],visiblePosition _x]; _marker setMarkerColorLocal "ColorRed"; _marker setMarkerTypeLocal "loc_Hospital"; _marker setMarkerTextLocal format ["%1",(_x getVariable ["name","Unknown Player"])]; _markers pushBack _marker; } forEach _units;
Est-ce que tu vois les marqueurs des autres médics du serveur sur ta carte ?
Est-ce que tu peux envoyer ton fn_medicMarkers.sqf ? Et ton fn_keyHandler.sqf ?
//Map Key
case (actionKeys "ShowMap" select 0): {
switch (playerSide) do {
case west: {if (!visibleMap) then {[] spawn life_fnc_copMarkers;}};
case independent: {if (!visibleMap) then {[] spawn life_fnc_medicMarkers;}};
case civilian: {if (!visibleMap) then {[] spawn life_fnc_civMarkers;}};
};
if (count life_trackers > 0) then {
if (!visibleMap) then {[] spawn life_fnc_gpsMarkers;};
};
};
Je te remercie, je test ça je te tiens au nouvelles.Est-ce que tu peux essayer d'ajouter dans le switch de ton fn_keyHandler.sqf ?
Code://Map Key case (actionKeys "ShowMap" select 0): { switch (playerSide) do { case west: {if (!visibleMap) then {[] spawn life_fnc_copMarkers;}}; case independent: {if (!visibleMap) then {[] spawn life_fnc_medicMarkers;}}; case civilian: {if (!visibleMap) then {[] spawn life_fnc_civMarkers;}}; }; if (count life_trackers > 0) then { if (!visibleMap) then {[] spawn life_fnc_gpsMarkers;}; }; };
Voici directement le fichier modifié :