Jump to content
Sign in to follow this  
hogmason

Marker Text Using a var name i think its called lol

Recommended Posts

so i need to set the text of my dynamic markers as a distance from an object this is what i use and have tried, p.s- my marker work fine

      _locations = ["c1","c2","c3","c4","c5"] call BIS_fnc_selectRandom;
      _selection = _locations;

      _dist = random 500;
     [color="#FF0000"]_distance = _dist;[/color]
      _dir = random 360;
      _pos = [((getMarkerPos _selection) select 0) + (sin _dir) * _dist, ((getMarkerPos _selection) select 1) + (cos _dir) * _dist, 0];	   
   //_pos = ["AO",false,["safe_zone"]] call SHK_pos;

       _intellmarker = createMarkerLocal [format ["mrk%1",random 100000], _pos];
       _intellmarker setMarkerTypeLocal "hd_unknown";
       _intellmarker setMarkerColorLocal "ColorRed";
      [color="#FF0000"]_intellmarker setMarkerTextLocal _distance[/color];



any help would be great as im stuck

this is my rpt error

 Error setmarkertextlocal: Type Number, expected String
File C:\Users\natho\Documents\ArmA 2 Other Profiles\=Mason=\missions\OP_HOG_Sangin_Uprising.hellskitchen\HOG_scripts\HOG_intell\intell_init.sqf,

Share this post


Link to post
Share on other sites

Just what it says, you gave it a number but it expected a string

_intellmarker setMarkerTextLocal (str _distance);

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
Sign in to follow this  

×