getDirVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Killzone Kid (talk | contribs) No edit summary |
||
(10 intermediate revisions by 3 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]].}} | |||
| | |s1= [[getDirVisual]] object | ||
|p1= object: [[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 | |||
|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 18:01, 6 September 2022
Description
- Description:
- Returns object's heading in the range from 0 to 360 in render time scope.
- 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:
- Example 2:
Additional Information
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