Jump to content
Sign in to follow this  
Sweetwater.I

ASL and Heading reading on a vehicle marker?

Recommended Posts

After avidly searching google and the forums I couldnt find any scripts or a explination on how to use the getPOSasl and others to get a marker that displays the name of the unit, the heading or elevation from sealevel. I'm hoping that someone here has already been through this issue before and may have some answers on how to get this to work.

For example, I am looking to set markers and have them update every 3-5s with the following format.

[Mohawk-1, HDG:230, 844 ASL]

I've been able to get the marker to stick to the vehicle and display the name but I am unsure on how to apply information based on that units location.

also any ideas on how to get a track. I.E have the last marker position still shown but only for an additional 3-5 seconds. This will be for an addition I'm making to track helicopters and fixed wing aircraft on the map for ATC/CCT type of roleplay.

Share this post


Link to post
Share on other sites

Something like

_veh = Mohawk1;
_marker = createMarker [name _veh,getposASL _veh];
_marker setmarkertype "mil_arrow";

while {alive _veh} do {

_dir = getdir _veh;
_alt = getposASL _veh select 2;
_marker setmarkerpos getposASL _veh;
_marker setmarkerdir _dir;
_text = format ["""%1"", HDG: %2,  %3 ASL",name _veh,round _dir,round _alt];
_marker setmarkertext _text;
sleep 3;

};

should do it.

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  

×