unitAimPositionVisual: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.63|= Game version |arg= global|=...")
 
m (Text replacement - "Samatra" to "Sa-Matra")
 
(42 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|1.63|= Game version
|version1= 1.64
|arg= global|= Arguments in MP
|arg= global
____________________________________________________________________________________________


| Returns the position on the unit other units can aim at in render scope. See also [[aimPos]], [[unitAimPosition]].  |= Description
|gr1= Object Manipulation
____________________________________________________________________________________________
|gr2= Render Time Scope


| '''unitAimPositionVisual''' unit |= Syntax
|descr= Returns the position on the unit other units can aim at in render scope. See also [[aimPos]], [[unitAimPosition]].


|p1= unit: [[Object]] |= Parameter 1
|s1= [[unitAimPositionVisual]] unit


| [[Array]] - position in format [[PositionAGL]] |= Return value
|p1= unit: [[Object]]
____________________________________________________________________________________________
 
|x1= <code>[[unitAimPositionVisual]] [[player]];</code> |= Example 1
____________________________________________________________________________________________


| [[unitAimPosition]], [[aimPos]], [[eyePos]], [[getPosASL]], [[weaponDirection]] |= See also
|r1= [[Array]] - position in format [[Position#PositionAGL|PositionAGL]]


|x1= <sqf>unitAimPositionVisual player;</sqf>
|seealso= [[unitAimPosition]] [[aimPos]] [[eyePos]] [[getPosASL]] [[weaponDirection]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Sa-Matra
<!-- Note Section BEGIN -->
|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!
 
}}
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Render Time Scope Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 20:58, 4 July 2024

Hover & click on the images for description

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
Sa-Matra - c
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!