visiblePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(AGLS)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=




|p1= object: [[Object]]: - name of the object |= Parameter 1
|p1= object: [[Object]]: - name of the object |PARAMETER1=


| [[Array]] - format [[PositionAGLS]] |= Return value
| [[Array]] - format [[PositionAGLS]] |RETURNVALUE=


____________________________________________________________________________________________
____________________________________________________________________________________________
    
    
|x1= <pre>playerRenderedPos = visiblePosition player;</pre> |= Example 1
|x1= <pre>playerRenderedPos = visiblePosition player;</pre> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 15:51, 7 April 2019

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:
Uncategorised

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:
getPosVisualgetPosATLVisualgetPosASLVisualvisiblePositionASLpositiongetPosgetPosATLgetPosASLgetPosASLW

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.