武装突袭 Wiki
探索
首页
讨论板
所有页面
社区页
交互式地图
最新博文
页面
最新页面
Contact Reports
Hotshot's Sandbox
DIK KeyCodes
Curator
武装突袭 Wiki
Product.cpp/bin File Format
Oxygen Light
最新博客
分类
Uploaded with UploadWizard
Face A2 Face101.jpg
Face A2 Face102.jpg
Face A2 Face103.jpg
Face A2 Face104.jpg
Face A2 Face105.jpg
Face A2 Face106.jpg
Face A2 Face107.jpg
含有损坏文件链接的页面
Eden Editor: Introduction
Eden Editor: Switching from 2D Editor
Eden Editor: Menu Bar
Eden Editor: Asset Browser
Eden Editor: Toolbar
Eden Editor: Status Bar
Eden Editor: Entity Attributes
社区
社区首页
社区中心
帮助中心
FANDOM
游戏
电影
电视
wiki
探索wiki
社区中心
创建wiki
尚未注册?
注册
登录
登录
注册
武装突袭 Wiki
4,828
个页面
探索
首页
讨论板
所有页面
社区页
交互式地图
最新博文
页面
最新页面
Contact Reports
Hotshot's Sandbox
DIK KeyCodes
Curator
武装突袭 Wiki
Product.cpp/bin File Format
Oxygen Light
最新博客
分类
Uploaded with UploadWizard
Face A2 Face101.jpg
Face A2 Face102.jpg
Face A2 Face103.jpg
Face A2 Face104.jpg
Face A2 Face105.jpg
Face A2 Face106.jpg
Face A2 Face107.jpg
含有损坏文件链接的页面
Eden Editor: Introduction
Eden Editor: Switching from 2D Editor
Eden Editor: Menu Bar
Eden Editor: Asset Browser
Eden Editor: Toolbar
Eden Editor: Status Bar
Eden Editor: Entity Attributes
社区
社区首页
社区中心
帮助中心
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
编辑“
NearestTerrainObjects
”
返回页面
编辑
可视化编辑器
查看历史
讨论 (0)
正在编辑
NearestTerrainObjects
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.54|= Game version ____________________________________________________________________________________________ | Returns a list of nearest terrain objects of the given types to the given position or object, within the specified distance. If more than one object is found they will be ordered according to [[distance2D]] to the object (i.e. the closest one will be first in the array). In contrast to [[nearestObjects]] this command returns terrain placed objects like trees, rocks and buildings which don't necessarily need an associated config class.<br><br> ''position'' can use the format: <tt><nowiki>[[</nowiki>x,y,z], ["Type",...], radius]</tt> or <tt>[object, ["Type",...], radius]</tt> To use it without any type filter: <tt>[object or position, [], radius]</tt> <br> <br> Possible type names:<tt>"TREE", "SMALL TREE", "BUSH", "BUILDING", "HOUSE", "FOREST BORDER", "FOREST TRIANGLE", "FOREST SQUARE", "CHURCH", "CHAPEL", "CROSS", "ROCK", "BUNKER", "FORTRESS", "FOUNTAIN", "VIEW-TOWER", "LIGHTHOUSE", "QUAY", "FUELSTATION", "HOSPITAL", "FENCE", "WALL", "HIDE", "BUSSTOP", "ROAD", "FOREST", "TRANSMITTER", "STACK", "RUIN", "TOURISM", "WATERTOWER", "TRACK", "MAIN ROAD", "ROCKS", "POWER LINES", "RAILWAY", "POWERSOLAR", "POWERWAVE", "POWERWIND", "SHIPWRECK", "TRAIL"</tt> |= Description ____________________________________________________________________________________________ |'''nearestTerrainObjects''' [position, types, radius] |p1= position: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]] - where to find objects, center position. |=Parameter 1 |p2= types: [[Array]] - list of types of the objects to search for. |=Parameter 2 |p3= radius: [[Number]] - range from center position to search for objects. |=Parameter 3 | [[Array]] - array of terrain objects sorted according to [[distance2D]] |= Return value ____________________________________________________________________________________________ |x1= <code>[[nearestTerrainObjects]] <nowiki>[</nowiki>[[player]], ["Tree","Bush"], 200];</code> |= Example 1 |x2= <code>[[nearestTerrainObjects]] <nowiki>[</nowiki>[[player]], ["House"], 200];</code> |= Example 2 |x3= <code>[[nearestTerrainObjects]] <nowiki>[</nowiki>[2716,2949,0], ["Chapel","Fuelstation"], 100];</code> |= Example 2 |x4= Return every terrain object in 50 metres radius around player:<code>[[nearestTerrainObjects]] <nowiki>[</nowiki>[[player]], [], 50]</code> |= Example 4 ____________________________________________________________________________________________ | [[findNearestEnemy]], [[hideObject]], [[nearestBuilding]], [[nearestObject]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearSupplies]], [[nearestLocationWithDubbing]], [[nearObjectsReady]], [[nearRoads]] |= See also }} <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style="display:none">Bottom Section</h3> [[Category:Scripting Commands|NEARESTOBJECTS]] [[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]] [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
摘要:
请注意在武装突袭 Wiki上的所有贡献都将依据CC-BY-SA进行发布。
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:=
(
查看源代码
)
Template:Biki unified see also
(
查看源代码
)
Template:Busa
(
查看源代码
)
Template:Command
(
查看源代码
)
Template:Command-example
(
查看源代码
)
Template:Command-param
(
查看源代码
)
Template:GVI
(
查看源代码
)
Template:GVI/branch
(
查看源代码
)
Template:GVI/intro
(
查看源代码
)
Template:Name
(
查看源代码
)
Follow on IG
TikTok
Join Fan Lab