FANDOM


Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.00

描述

描述:
Returns the object heading in the range from 0 to 360.

Since Arma 3 v1.55.133361, an alternative syntax is added that allows to get heading from one object or position to another object or position, the equivalent of BIS_fnc_dirTo

基本句法

句法:
getDir object
参数:
object: Object
返回值:
Number

替代句法

句法:
pos1 getDir pos2         Since Arma 3 v1.55.133361
参数:
pos1: Object, Position2D or Position3D - from where

pos2: Object, Position2D or Position3D - to where
返回值:
Number

范例

范例1:
_azimuth = getDir player;

范例2:
_azimuth = player getDir tank;

额外资讯

多人游戏:
-
也可以看看:

getDirVisualdirectiongetRelDir

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on October 23, 2013
AgentRev
Be careful when using this command in conjunction with BIS_fnc_rotateVector2D; the latter rotates vectors counterclockwise (mathematically correct), while getDir returns a clockwise angle.
To counter this, simply negate the output of getDir:

[[0,1,0], -(getDir _object)] call BIS_fnc_rotateVector2D;


Bottom Section

您使用了广告屏蔽软件!


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

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

查看其他FANDOM

随机维基