visiblePosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma2oa * * *\| *([0-1]\.[0-9]{2}) * " to "|game1= arma2oa |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
||
Line 28: | Line 28: | ||
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Arma 2: Operation Arrowhead: New Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<dl class="command_description"> | <dl class="command_description"> |
Revision as of 23:49, 16 June 2021
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
- 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.