getDirVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Killzone Kid (talk | contribs) No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
|descr= Returns object's heading in the range from 0 to 360 in 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 | |s1= [[getDirVisual]] object | ||
Line 18: | Line 20: | ||
|r1= [[Number]] | |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]] | |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