getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 11: Line 11:


|descr= Returns object's heading in the range from 0 to 360 in render time scope.
|descr= Returns object's heading in the range from 0 to 360 in render time scope.
{{Feature|arma3|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]].}}


|s1= [[getDirVisual]] object
|s1= [[getDirVisual]] object
Line 18: Line 20:
|r1= [[Number]]
|r1= [[Number]]


|x1= <code>_dir = [[getDirVisual]] [[player]];</code>
|s2= pos1 [[getDirVisual]] pos2
 
|s2since= arma3 2.12
 
|p21= pos1: [[Object]], [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] - from where
 
|p22= pos2: [[Object]], [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] - to where
 
|r2= [[Number]]
 
|x1= <sqf>_dir = getDirVisual player;</sqf>
|x2= <sqf>_azimuth = player getDirVisual tank;</sqf>


|seealso= [[getDir]], [[direction]]
|seealso= [[getDir]] [[direction]]
}}
}}

Latest revision as of 18:01, 6 September 2022

Hover & click on the images for description

Description

Description:
Returns object's heading in the range from 0 to 360 in render time scope.
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.
Groups:
Object ManipulationRender Time Scope

Syntax

Syntax:
getDirVisual object
Parameters:
object: Object
Return Value:
Number

Alternative Syntax

Syntax:
pos1 getDirVisual pos2
Parameters:
pos1: Object, Position2D or Position3D - from where
pos2: Object, Position2D or Position3D - to where
Return Value:
Number

Examples

Example 1:
_dir = getDirVisual player;
Example 2:
_azimuth = player getDirVisual tank;

Additional Information

See also:
getDir direction

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note