nearSupplies: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 16: | Line 16: | ||
|r1= [[Array]] - array of [[Object]]s | |r1= [[Array]] - array of [[Object]]s | ||
|x1= <code>_list = player | |x1= <code>_list = player nearSupplies 50;</code> | ||
|seealso= [[findNearestEnemy]] [[nearestBuilding]] [[nearestObject]] [[nearestObjects]] [[nearObjects]] [[nearestLocation]] [[nearEntities]] [[nearTargets]] [[nearestLocationWithDubbing]] [[nearObjectsReady]] [[nearRoads]] [[nearestMines]] | |seealso= [[findNearestEnemy]] [[nearestBuilding]] [[nearestObject]] [[nearestObjects]] [[nearObjects]] [[nearestLocation]] [[nearEntities]] [[nearTargets]] [[nearestLocationWithDubbing]] [[nearObjectsReady]] [[nearRoads]] [[nearestMines]] | ||
}} | }} |
Revision as of 11:13, 12 May 2022
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:
- findNearestEnemy nearestBuilding nearestObject nearestObjects nearObjects nearestLocation nearEntities nearTargets nearestLocationWithDubbing nearObjectsReady nearRoads nearestMines
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