nearSupplies: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Text replacement - " \{\{GameCategory *\| *arma3 *\| *(New )?Scripting Commands\}\}" to "")
Line 20: Line 20:
|seealso= [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearestLocationWithDubbing]], [[nearObjectsReady]], [[nearRoads]]
|seealso= [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearestLocationWithDubbing]], [[nearObjectsReady]], [[nearRoads]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

Revision as of 03:18, 13 June 2021

Hover & click on the images for description

Description

Description:
Find supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius.
Groups:
Object Detection

Syntax

Syntax:
origin nearSupplies radius
Parameters:
origin: Object or Array in format PositionAGL or Position2D
radius: Number
Return Value:
Array - array of Objects

Examples

Example 1:
_list = player nearSupplies 50;

Additional Information

See also:
findNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargetsnearestLocationWithDubbingnearObjectsReadynearRoads

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note