{"name":"getDirVisual","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","games":{"arma3":"1.32"},"since":"arma3 1.32","arma3_since":"1.32","locality":{"argument":"global"},"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","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"object"}},{"syntax":"pos1 getDirVisual pos2","since":"arma3 2.12","params":[{"name":"pos1","type":"Object, Position2D or Position3D","description":"from where","type_expr":"Object | Position2D | Position3D"},{"name":"pos2","type":"Object, Position2D or Position3D","description":"to where","type_expr":"Object | Position2D | Position3D"}],"returns":{"type":"Number","type_expr":"Number"},"form":"binary","left":{"text":"pos1"},"right":{"text":"pos2"}}],"examples":[{"code":["_dir = getDirVisual player;"]},{"code":["_azimuth = player getDirVisual tank;"]}],"see_also":["getDir","direction"]}