Fandom

武装突袭 Wiki

TargetsQuery

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Returns sorted array of targets, known to the enquirer (including own troops), where the accuracy coefficient reflects how close the result matches the query. This command could be CPU intensive.

基本句法

句法:
enquirer targetsQuery [targetIgnore, targetSide, targetType, targetPosition, targetMaxAge]
参数:
enquirer: Object - For whom the query will be made

[targetIgnore, targetSide, targetType, targetPosition, targetMaxAge]: Array - Query

targetIgnore: Object - Target object to exclude from results. objNull - return every target

targetSide: Side - Desired side of the target. sideUnknown - any side

targetType; String - Desired target typeOf. "" - any type

targetPosition: Array - Desired target position in format of Position2D or Position3D (only [x,y] is considered). Position tolerance is 200m from the actual position of the target. [] - any position

targetMaxAge: Number - Desired max age of the target. This will limit returned results to the targets younger than specified age. 0 - any age
返回值:
Array - sorted array of returned targets in the following format: [[accuracy, target, targetSide, targetType, targetPosition, targetAge],...] where:

  • accuracy: Number - a coefficient, which reflects how close the returned result to the query filter. Range: 0 - 1 (1 - best match)
  • target: Object - the actual target object
  • targetSide: Side - side of the target
  • targetType: String - target typeOf
  • targetPosition: Array - [x,y] of the target
  • targetAge: Number - the actual target age in seconds (can be negative)

范例

范例1:
Return all known targets for player:_targets = player targetsQuery [objNull, sideUnknown, "", [], 0];

范例2:
Prioritise all known OPFOR targets and return targets less than 10 seconds old:_targets = player targetsQuery [objNull, east, "", [], 10];

额外资讯

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

targetsAggregatetargetKnowledgeknowsAbout

注意事项

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

Notes

Bottom Section

更多维基

随机维基