getRelPos

From Bohemia Interactive Community
Revision as of 18:56, 13 November 2015 by Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.55|= Game version |arg= global|=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Arma 3 Development Branch version 1.551.55DEV BRANCH ONLY ⚠Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Returns position, which is given distance and relative direction away from original object.

Syntax

Syntax:
object getPosVisual [distance, direction]
Parameters:
object: Object - object
[distance, direction]: Array
distance: Number - distance from object
direction: Number - direction relative to object's current direction
Return Value:
Array - format [x,y,z], where z is land surface in format PositionAGL

Examples

Example 1:
Find position 100 metres away at player's 3 o'clock:_relpos = player getRelPos [100, 90];

Additional Information

See also:
getPosASLVisualgetPosATLVisualvisiblePositionASLvisiblePositionpositiongetPosgetPosATLgetPosASLgetPosASLW
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section