{"name":"BIS_fnc_relativeDirTo","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"from","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"from: Object"},{"name":"to","type":"Object or Array format Position","optional":false,"default":null,"description":null,"types":["Object","Array","Position"],"since":null,"text":"to: Object or Array format Position"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"}}],"examples":[{"text":"```sqf\n[[0,0,0], player] call BIS_fnc_relativeDirTo;\n```","code":["[[0,0,0], player] call BIS_fnc_relativeDirTo;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getPos","getRelDir","direction"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Geometry","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}