visiblePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2oa |Game name=
| arma2oa |Game name=
Line 8: Line 7:
|gr1= Positions |GROUP1=
|gr1= Positions |GROUP1=
|gr2= Render Time Scope |GROUP2=
|gr2= Render Time Scope |GROUP2=
____________________________________________________________________________________________


| Returns an object's rendered position (z value above surface underneath) in render time scope. Same as [[getPosVisual]] |DESCRIPTION=
| Returns an object's rendered position (z value above surface underneath) in render time scope. Same as [[getPosVisual]] |DESCRIPTION=
____________________________________________________________________________________________


|'''visiblePosition''' object |SYNTAX=
|'''visiblePosition''' object |SYNTAX=
Line 20: Line 17:
| [[Array]] - format [[PositionAGLS]] |RETURNVALUE=
| [[Array]] - format [[PositionAGLS]] |RETURNVALUE=


____________________________________________________________________________________________
    
    
|x1= <code>playerRenderedPos = [[visiblePosition]] [[player]];</code> |EXAMPLE1=
|x1= <code>playerRenderedPos = [[visiblePosition]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[getPosVisual]], [[getPosATLVisual]], [[getPosASLVisual]], [[getPosWorldVisual]], [[visiblePositionASL]], [[position]], [[getPos]], [[getPosATL]], [[getPosASL]], [[getPosASLW]]  |SEEALSO=
| [[getPosVisual]], [[getPosATLVisual]], [[getPosASLVisual]], [[getPosWorldVisual]], [[visiblePositionASL]], [[position]], [[getPos]], [[getPosATL]], [[getPosASL]], [[getPosASLW]]  |SEEALSO=

Revision as of 05:15, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns an object's rendered position (z value above surface underneath) in render time scope. Same as getPosVisual
Groups:
PositionsRender Time Scope

Syntax

Syntax:
visiblePosition object
Parameters:
object: Object: - name of the object
Return Value:
Array - format PositionAGLS

Examples

Example 1:
playerRenderedPos = visiblePosition player;

Additional Information

See also:
getPosVisualgetPosATLVisualgetPosASLVisualgetPosWorldVisualvisiblePositionASLpositiongetPosgetPosATLgetPosASLgetPosASLW

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

Posted on February 4, 2015 - 17:04 (UTC)
Pierre MGI
Z (visiblePosition select 2) works but if unit/object is in a building, Z remains at ground level. If you need Z depending on building floors/stages, use getPosAtl select 2 instead.