{"name":"getDirVisual","operator":null,"title":"getDirVisual","type":"command","url":"https://community.bistudio.com/wiki/getDirVisual","revid":330392,"updated":"2022-09-06T17:01:40Z","groups":["Object Manipulation","Render Time Scope"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.32"}],"since":{"game":"arma3","name":"Arma 3","version":"1.32"},"arma3_since":"1.32","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns object's heading in the range from 0 to 360 in render time scope.\n\n> [!NOTE]\n> **Arma 3:** The alternative syntax gets heading from one object or position to another object or position in render time scope, and should be used instead of BIS_fnc_dirTo.","syntaxes":[{"syntax":"getDirVisual object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}},{"syntax":"pos1 getDirVisual pos2","since":"arma3 2.12","effect":null,"exec":null,"params":[{"name":"pos1","type":"Object, Position2D or Position3D","optional":false,"default":null,"description":"from where","types":["Object","Position2D","Position3D"],"since":null,"text":"pos1: Object, Position2D or Position3D - from where"},{"name":"pos2","type":"Object, Position2D or Position3D","optional":false,"default":null,"description":"to where","types":["Object","Position2D","Position3D"],"since":null,"text":"pos2: Object, Position2D or Position3D - to where"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"},"form":"binary","operator":null,"left":{"text":"pos1","types":["Object","Position2D","Position3D"]},"right":{"text":"pos2","types":["Object","Position2D","Position3D"]}}],"examples":[{"text":"```sqf\n_dir = getDirVisual player;\n```","code":["_dir = getDirVisual player;"]},{"text":"```sqf\n_azimuth = player getDirVisual tank;\n```","code":["_azimuth = player getDirVisual tank;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getDir","direction"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Command Group: Render Time Scope","Introduced with Arma 3 version 1.32","Scripting Commands"]}