武装突袭 Wiki
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.08

描述

描述:
Returns an array of locations of chosen type(s) within the given radius of the given position, sorted from nearest to farthest.

基本句法

句法:
nearestLocations [position, [locationType,...], radius, sortPosition]
参数:
[position, [locationType,...], radius, sortFrom]: Array
position: Array - Position2D, Position3D or Object
[locationType,...]: Array
locationType: String - location type name, e.g "NameCity"
radius: Number - maximum distance from the given position that returned locations may be, in meters.
sortPosition (Optional): Array - Position2D, Position3D or Object
返回值:
Array of locations

范例

范例1:
_nearbyLocations = nearestLocations [position player, ["RockArea","VegetationFir"], 100];
范例2:
Find any of nearest locations:allLocationTypes = []; "allLocationTypes pushBack configName _x" configClasses ( configFile >> "CfgLocationTypes" ); { systemChat format [ "%1 (%2) - %3m", _x, text _x, position player distance _x ]; } forEach nearestLocations [player, allLocationTypes, 500];

额外资讯

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

注意事项

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

Notes

Bottom Section

Advertisement