Jump to content
Sign in to follow this  
Antigoon

Display direction from player to marker

Recommended Posts

For testing purposes I want to display the bearing from the player's position to a marker. Can't get it to work though...

This is what I was using sofar, except the hint it gives is always "Bearing: any".....

_playerpos = getPos player;
_markerpos = getMarkerPos "target";
_direction = [_playerpos,_markerpos] call BIS_fnc_dirTo;
hintsilent format ["Bearing: %1",_direction];

Share this post


Link to post
Share on other sites

Haha, been like a year since I did any scripting....silly old me:D

As always, thx kylania!

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  

×