unitAimPositionVisual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - "Samatra" to "Sa-Matra") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|1.64 | |version1= 1.64 | ||
|arg= global | |arg= global | ||
Line 8: | Line 8: | ||
|gr2= Render Time Scope | |gr2= Render Time Scope | ||
| Returns the position on the unit other units can aim at in render scope. See also [[aimPos]], [[unitAimPosition]]. | |descr= Returns the position on the unit other units can aim at in render scope. See also [[aimPos]], [[unitAimPosition]]. | ||
| | |s1= [[unitAimPositionVisual]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] - position in format [[PositionAGL]] | |r1= [[Array]] - position in format [[Position#PositionAGL|PositionAGL]] | ||
|x1= < | |x1= <sqf>unitAimPositionVisual player;</sqf> | ||
|seealso= [[unitAimPosition]] | |seealso= [[unitAimPosition]] [[aimPos]] [[eyePos]] [[getPosASL]] [[weaponDirection]] | ||
}} | }} | ||
{{ | {{Note | ||
|user= Sa-Matra | |||
|timestamp= 20230430114458 | |||
|text= This command (along with [[unitAimPosition]] and [[aimPos]]) is unreliable when entity has [[objectParent]], it can return its last position in the world in case of static weapon packed into backpack, or can return very outdated (lagging behind) position or even [0,0,0] on remote units inside vehicles. Be careful when using it! | |||
}} |
Latest revision as of 20:58, 4 July 2024
Description
- Description:
- Returns the position on the unit other units can aim at in render scope. See also aimPos, unitAimPosition.
- Groups:
- Object ManipulationRender Time Scope
Syntax
- Syntax:
- unitAimPositionVisual unit
- Parameters:
- unit: Object
- Return Value:
- Array - position in format PositionAGL
Examples
- Example 1:
- unitAimPositionVisual player;
Additional Information
- See also:
- unitAimPosition aimPos eyePos getPosASL weaponDirection
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
- Posted on Apr 30, 2023 - 11:44 (UTC)
- This command (along with unitAimPosition and aimPos) is unreliable when entity has objectParent, it can return its last position in the world in case of static weapon packed into backpack, or can return very outdated (lagging behind) position or even [0,0,0] on remote units inside vehicles. Be careful when using it!