visiblePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 25: Line 25:
|x1= <code>playerRenderedPos = [[visiblePosition]] [[player]];</code>
|x1= <code>playerRenderedPos = [[visiblePosition]] [[player]];</code>


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



Revision as of 21:59, 20 January 2022

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.
This command should not be used for actual 3D calculations. See getPos for more details.
Groups:
PositionsRender Time Scope

Syntax

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

Examples

Example 1:
playerRenderedPos = visiblePosition player;

Additional Information

See also:
getPosVisual getPosATLVisual getPosASLVisual getPosWorldVisualvisiblePositionASLpositiongetPosgetPosATLgetPosASLgetPosASLW

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


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.