English Solved How to make a marker visible for only the police?

  • Auteur de la discussion Auteur de la discussion Bundestag
  • Date de début Date de début

Bundestag

User
3/4/21
25
1
1
300
Hello again,
im trying to make a marker only visible for the police (west)
the code i use looks like this:
Code:
"west_funk" setMarkerAlphaLocal 0;

But i dont know where to put it.
Dose someone know where to put it.
i tryed it in the fn_checkmap, and in the cop,civ,medMarkers. but it didt not work.
 
Solution
I solved it by my self.
this is how:
1. I added to the Map Eventhandler in the fn_setupEVH.sqf a new execVM to call my file "map.sqf"
2. I added my file Map.sqf with this content:

Code:
 params [
     ["_mapOpen",false,[false]]
 ];
 
 if (_mapOpen) then {
    if (playerSide == west) then {
        "west_funk" setMarkerAlpha 1;
    } else {
        "west_funk" setMarkerAlpha 0;
    };
 };
I solved it by my self.
this is how:
1. I added to the Map Eventhandler in the fn_setupEVH.sqf a new execVM to call my file "map.sqf"
2. I added my file Map.sqf with this content:

Code:
 params [
     ["_mapOpen",false,[false]]
 ];
 
 if (_mapOpen) then {
    if (playerSide == west) then {
        "west_funk" setMarkerAlpha 1;
    } else {
        "west_funk" setMarkerAlpha 0;
    };
 };
 
  • Like
Les réactions: Maxence
Solution