getDirVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
No edit summary
 
(25 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


|p1= object: [[Object]] |PARAMETER1=
|gr2= Render Time Scope
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
|x1 = <code>_dir = '''getDirVisual''' [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________
| [[getDir]], [[direction]] |SEEALSO=


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


<h3 style="display:none">Notes</h3>
|p22= pos2: [[Object]], [[Position#Introduction|Position2D]] or [[Position#Introduction|Position3D]] - to where
<dl class="command_description">
<!-- Note Section BEGIN -->


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