getDirVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Killzone Kid (talk | contribs) No edit summary |
||
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 17: | Line 19: | ||
|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> | |x1= <sqf>_dir = getDirVisual player;</sqf> |
Revision as of 18:00, 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:
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