Fandom

武装突袭 Wiki

BIS_fnc_relPos

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:

/************************************************************
	Relative Position

Parameters: [object or position, distance, direction]

Returns a position that is a specified distance and compass
direction from the passed position or object.

Example: [player, 5, 100] call BIS_fnc_relPos
************************************************************/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)

Example 1:</dt>

//Lawman_Actual: "Will Create a nice spiral of flares from the player at 30 degree intervals and increasing distance"

for "_x" from 0 to 1440 step 30 do{

_distance = (_x/100)*2; _targetPos = [(getPos player), _distance, _x] call BIS_fnc_relPos; _targetPos set [2,0]; _flare = "F_40mm_White" createVehicle _targetPos; sleep 0.25;

};

</dd>

See also:</dt>

getPos</dd>

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 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.

更多维基

随机维基