unitAimPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


|gr2= Positions |GROUP2=
|gr2= Positions |GROUP2=
____________________________________________________________________________________________


| 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]].  |DESCRIPTION=
____________________________________________________________________________________________


| '''unitAimPosition''' unit |SYNTAX=
| '''unitAimPosition''' unit |SYNTAX=
Line 19: Line 16:


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


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

Revision as of 05:23, 17 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

Bottom Section