getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command
 
|game1= arma3
|version1= 1.32


| arma3
|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


| '''getDirVisual''' object
|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]].}}


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


|p1= object: [[Object]]
|p1= object: [[Object]]
| [[Number]]
|x1 = <code>_dir = '''getDirVisual''' [[player]];</code>
| [[getDir]], [[direction]]


}}
|r1= [[Number]]
 
|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>


{{GameCategory|arma3|New Scripting Commands}}
|seealso= [[getDir]] [[direction]]
{{GameCategory|arma3|Scripting Commands}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

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