visiblePosition

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.60
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.60

Description

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

Syntax

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

Examples

Example 1:
playerRenderedPos = visiblePosition player;

Additional Information

Multiplayer:
-
See also:
getPosVisualgetPosATLVisualgetPosASLVisualvisiblePositionASLpositiongetPosgetPosATLgetPosASLgetPosASLW

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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.