unitAimPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3
|1.64|Game version=
|1.64
|arg= global|Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


|gr2= Positions |GROUP2=
|gr2= Positions


| Returns the position on the unit other units can aim at. Same as [[aimPos]] only returns position in [[PositionAGL]] format and has render scope alternative [[unitAimPositionVisual]]. |DESCRIPTION=
| Returns the position on the unit other units can aim at. Same as [[aimPos]] only returns position in [[PositionAGL]] format and has render scope alternative [[unitAimPositionVisual]].


| '''unitAimPosition''' unit |SYNTAX=
| '''unitAimPosition''' unit


|p1= unit: [[Object]] |PARAMETER1=
|p1= unit: [[Object]]


| [[Array]] - position in format [[PositionAGL]] |RETURNVALUE=
| [[Array]] - position in format [[PositionAGL]]
   
   
|x1= <code>[[unitAimPosition]] [[player]];</code> |EXAMPLE1=
|x1= <code>[[unitAimPosition]] [[player]];</code>


| [[unitAimPositionVisual]], [[aimPos]], [[eyePos]], [[getPosASL]], [[weaponDirection]] |SEEALSO=
| [[unitAimPositionVisual]], [[aimPos]], [[eyePos]], [[getPosASL]], [[weaponDirection]]


}}
}}

Revision as of 12:43, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns the position on the unit other units can aim at. Same as aimPos only returns position in PositionAGL format and has render scope alternative unitAimPositionVisual.
Groups:
Object ManipulationPositions

Syntax

Syntax:
unitAimPosition unit
Parameters:
unit: Object
Return Value:
Array - position in format PositionAGL

Examples

Example 1:
unitAimPosition player;

Additional Information

See also:
unitAimPositionVisualaimPoseyePosgetPosASLweaponDirection

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

Notes