{"name":"BIS_fnc_relativeDirTo","title":"BIS fnc relativeDirTo","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_relativeDirTo","revid":327966,"updated":"2022-07-13T13:59:46Z","groups":["Geometry"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.\n\n> [!NOTE]\n> **Arma 3:** Use getRelDir instead.","syntaxes":[{"syntax":"[from, to] call BIS_fnc_relativeDirTo","params":[{"name":"from","type":"Object","type_expr":"Object"},{"name":"to","type":"Object or Array format Position","type_expr":"Object | Position","types":["Object","Array","Position"]}],"returns":{"type":"Number","type_expr":"Number"}}],"examples":[{"code":["[[0,0,0], player] call BIS_fnc_relativeDirTo;"]}],"see_also":["getPos","getRelDir","direction"]}