Jump to content

Recommended Posts

Working with Altis life 5.0.0

 

I have a marker being created and working as intended but the Text does not show up. I am wondering how to set the text color also.

 

The Text was fine until i changed the marker color.

Heres the original that works - i want a red ellipse as i would like it to be a Kill On Sight zone -

 

if(_Create_Markers)then{

    _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ICON"; 
    _Marker setMarkerType "mil_marker"; 
    _Marker setMarkerColor "ColorUNKNOWN"; 
    _Marker setMarkerText format ["Airdrop : %1",_a];    
    _Marker setMarkerSize [1,1];         
};

 

I adapted it to this and it shows the ellipse but no text - 

 

 

if(_Create_Markers) then {

    _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE"; 
    _Marker setMarkerType "mil_marker"; 
    _Marker setMarkerColor "ColorRed"; 
    _Marker setMarkerText format ["Airdrop : %1",_a];    
    _Marker setMarkerSize [625,625]; 

 

Thank you

 

 

Tried this - 

if(_Create_Markers)then{
    
    _Marker_Number_Pos = format ["%1",_Pos];
    _Marker_Pos = createMarker [_Marker_Number_Pos,_Pos];        
    _Marker_Pos setMarkerShape "ELLIPSE"; 
    _Marker_Pos setMarkerType "mil_marker"; 
    _Marker_Pos setMarkerColor "ColorRed"; 
    _Marker_Pos setMarkerText "STR_Airdrop_Items";    
    _Marker_Pos setMarkerSize [600,600];

 

AND

    _Marker_Number_Pos = format ["%1",_Pos];
    _Marker_Pos = createMarker [_Marker_Number_Pos,_Pos];        
    _Marker_Pos setMarkerShape "ELLIPSE"; 
    _Marker_Pos setMarkerType "mil_marker"; 
    _Marker_Pos setMarkerColor "ColorRed"; 
    _Marker_Pos setMarkerText "AIRDROP";    
    _Marker_Pos setMarkerSize [600,600];

 

Did not work

 

 I went back to the original and only changed the marker shape to an ELLIPSE - this seems to be the problem of the text disappearing - 

 

    _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE"; 
    _Marker setMarkerType "mil_marker"; 
    _Marker setMarkerColor "ColorUNKNOWN"; 
    _Marker setMarkerText format ["Airdrop : %1",_a];    
    _Marker setMarkerSize [600,600]; 

      

Share this post


Link to post
Share on other sites
21 minutes ago, killzone_kid said:

Ellipse marker doesn't show text by default

ok cool thanks for that info.

 

Do you know of a way to add text  to the code i have with an ellipse please?

Share this post


Link to post
Share on other sites

   This has brought the text back but the red ellipse is no longer visible - still working on it

 

 _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE";
    _Marker setMarkerColor "ColorRed";
    _Marker setMarkerSize [625,625];
    _Marker setMarkerShape "ICON";  
    _Marker setMarkerType "mil_warning"; 
    _Marker setMarkerColor "ColorBlack"; 
    _Marker setMarkerText format ["AIRDROP",_a];    
    _Marker setMarkerSize [1,1]; 

Share this post


Link to post
Share on other sites

Trying now to create 2 markers in the same pos - 

 

    _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE";
    _Marker setMarkerColor "ColorRed";
    _Marker setMarkerSize [625,625];
 };

    then{

    _Marker2_id = format ["%1",_pos];
    _Marker2 = createMarker [_Marker_id,_pos];        
    _Marker2 setMarkerShape "ICON";  
    _Marker2 setMarkerType "mil_warning"; 
    _Marker2 setMarkerColor "ColorBlack"; 
    _Marker2 setMarkerText format ["AIRDROP",_a];    
    _Marker2 setMarkerSize [1,1];

 

broke the script.

Share this post


Link to post
Share on other sites

   Only shows the Red Ellipse (_marker)

 

     _Marker_id = format ["%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE";
    _Marker setMarkerColor "ColorRed";
    _Marker setMarkerSize [625,625];

    _Marker2_id = format ["%1",_pos];
    _Marker2 = createMarker [_Marker_id,_pos];        
    _Marker2 setMarkerShape "ICON";  
    _Marker2 setMarkerType "mil_warning"; 
    _Marker2 setMarkerColor "ColorBlack"; 
    _Marker2 setMarkerText format ["AIRDROP",_a];    
    _Marker2 setMarkerSize [1,1]; 

Share this post


Link to post
Share on other sites
9 minutes ago, Steel_Dragon said:

};

    then{

😕 Erm what's with that?

 

3 minutes ago, Steel_Dragon said:

Only shows the Red Ellipse (_marker)

As they are both named the same, markers must have unique names.

Maybe...

_Marker_id = format ["area_%1",_pos];
_Marker2_id = format ["text_%1",_pos];

 

  • Thanks 1

Share this post


Link to post
Share on other sites
5 minutes ago, Larrow said:

😕 Erm what's with that?

 

As they are both named the same, markers must have unique names.

Maybe...


_Marker_id = format ["area_%1",_pos];
_Marker2_id = format ["text_%1",_pos];

 

ok thanks ill try it

 

testing this - 

 

    _Marker_id = format ["area_%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE";
    _Marker setMarkerColor "ColorRed";
    _Marker setMarkerSize [625,625];

    _Marker2_id = format ["text_%1",_pos];
    _Marker2 = createMarker [_Marker2_id,_pos];        
    _Marker2 setMarkerShape "ICON";  
    _Marker2 setMarkerType "mil_warning"; 
    _Marker2 setMarkerColor "ColorBlack"; 
    _Marker2 setMarkerText format ["AIRDROP",_a];    
    _Marker2 setMarkerSize [1,1]; 

Share this post


Link to post
Share on other sites
10 minutes ago, Larrow said:

😕 Erm what's with that?

 

As they are both named the same, markers must have unique names.

Maybe...


_Marker_id = format ["area_%1",_pos];
_Marker2_id = format ["text_%1",_pos];

 

Thanks for the tip Solved - 

 

    _Marker_id = format ["area_%1",_pos];
    _Marker = createMarker [_Marker_id,_pos];        
    _Marker setMarkerShape "ELLIPSE";
    _Marker setMarkerColor "ColorRed";
    _Marker setMarkerSize [625,625];

    _Marker2_id = format ["text_%1",_pos];
    _Marker2 = createMarker [_Marker2_id,_pos];        
    _Marker2 setMarkerShape "ICON";  
    _Marker2 setMarkerType "mil_warning"; 
    _Marker2 setMarkerColor "ColorBlack"; 
    _Marker2 setMarkerText format ["AIRDROP",_a];    
    _Marker2 setMarkerSize [1,1]; 

 

 

SOLVED

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×