getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|1.32
|version1= 1.32
 
|arg= global
|arg= global


| Returns object's heading in the range from 0 to 360 in render time scope.
|gr1= Object Manipulation
 
|gr2= 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]].}}


| '''getDirVisual''' object


|gr1= Object Manipulation
|s1= [[getDirVisual]] object
|gr2= Render Time Scope


|p1= object: [[Object]]
|p1= object: [[Object]]
| [[Number]]
 
|x1= <code>_dir = '''getDirVisual''' [[player]];</code>
|r1= [[Number]]
|seealso= [[getDir]], [[direction]]
 
|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]]
}}
}}

Latest revision as of 19: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