BIS fnc relPos: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
||
Line 27: | Line 27: | ||
[[Category:{{Name|arma2}}: Functions|{{uc:relPos}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:relPos}}]] | ||
[[Category:{{Name|arma2oa}}: Functions|{{uc:relPos}}]] | [[Category:{{Name|arma2oa}}: Functions|{{uc:relPos}}]] |
Revision as of 02:03, 2 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- PositionsGeometry
Syntax
- Syntax:
- Syntax needed
- Parameters:
- start: Object or Position - Object or position which should be used as initial point.
- distance: Number - Distance from initial point.
- direction: Number - Direction from the intial position.
- Return Value:
- Return value needed
Examples
- Example 1:
[ [0,0,0], 1000, 50 ] call BIS_fnc_relPos;//[766.044,642.788,0]
Additional Information
- See also:
- See also needed
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 January 7, 2016 - 19:26 (UTC)
- Lawman Actual
- The function appears to work in two dimensions, and as such can be used to find the position of a target relative to the player if bearing and distance are known. However, if there is a significant change in elevation between yourself and the target, the distance registered on a ragefinder (which is measuring a 3 dimensional straight line) will always be larger than the two-dimensional value required for BIS_fnc_relPos and as such air-strikes and ordnance called in using such a function can miss by several hundred metres in extreme cases. Currently searching for a method which incorporates the azimuth of the rangefinder in calculation.