getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
No edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|1.32|Game version=
|version1= 1.32
|arg= global|Multiplayer Arguments=
____________________________________________________________________________________________


| Returns object's heading in the range from 0 to 360 in render time scope. |DESCRIPTION=
|arg= global
____________________________________________________________________________________________


| '''getDirVisual''' object |SYNTAX=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|gr2= Render Time Scope
|gr2= Render Time Scope |GROUP2=


|p1= object: [[Object]] |PARAMETER1=
|descr= Returns object's heading in the range from 0 to 360 in render time scope.
| [[Number]] |RETURNVALUE=
{{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> |EXAMPLE1=
____________________________________________________________________________________________
| [[getDir]], [[direction]] |SEEALSO=


}}


<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}}}}]]

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