0 Members and 1 Guest are viewing this topic.
; ##the object ebing tracked_trackee = w6; ##the object tracking the object being tracked_tracker = leader gw1#start_tracker = leader gw1; ##the compass heading from the tracker to the trackee is calculated here_dir = getdir (vehicle _tracker)_degree = ((getpos _trackee select 0) - (getpos _tracker select 0)) atan2 ((getpos _trackee select 1) - (getpos _tracker select 1)); ## "_degree" is the compass heading the tracker needs to point to face the trackee?_degree < 0:_degree = _degree + 360