getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1.29 -> 1.31)
No edit summary
 
(30 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.32


|1.31|= Game version
|arg= global
____________________________________________________________________________________________


| Returns object's heading in the range from 0 to 360 in render time scope. |= Description
|gr1= Object Manipulation
____________________________________________________________________________________________


| '''getDirVisual''' object |= Syntax
|gr2= Render Time Scope


|p1= object: [[Object]] |=Parameter 1
|descr= Returns object's heading in the range from 0 to 360 in render time scope.
| [[Number]] |= Return value
{{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]].}}
____________________________________________________________________________________________
|x1 = <code>_dir = '''getDirVisual''' [[player]];</code> |= Example 1
____________________________________________________________________________________________
| [[getDir]], [[direction]] |= See also


}}


<h3 style="display:none">Notes</h3>
|s1= [[getDirVisual]] object
<dl class="command_description">
 
<!-- Note Section BEGIN -->
|p1= object: [[Object]]
 
|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


<!-- Note Section END -->
|r2= [[Number]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_dir = getDirVisual player;</sqf>
|x2= <sqf>_azimuth = player getDirVisual tank;</sqf>


[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
|seealso= [[getDir]] [[direction]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Render Time Scope 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