nearSupplies: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) (Add alternative syntax) |
||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 0.50 | |||
| | |gr1= Object Detection | ||
| | |descr= Find supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius. | ||
| | |s1= origin [[nearSupplies]] radius | ||
| origin | |p1= origin: [[Object]] or [[Array]] in format [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] | ||
| | |p2= radius: [[Number]] | ||
| | |r1= [[Array]] of [[Object]]s | ||
| [[ | |s2= origin [[nearSupplies]] [typeName, radius] | ||
|p21= origin: [[Object]] or [[Array]] in format [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] | |||
| | |p22= typeName: [[String]] | ||
|p23= radius: [[Number]] | |||
| [[ | |r2= [[Array]] of [[Object]]s | ||
| | |x1= <sqf>_list = player nearSupplies 50;</sqf> | ||
|seealso= [[findNearestEnemy]] [[nearestBuilding]] [[nearestObject]] [[nearestObjects]] [[nearObjects]] [[nearestLocation]] [[nearEntities]] [[nearTargets]] [[nearestLocationWithDubbing]] [[nearObjectsReady]] [[nearRoads]] [[nearestMines]] [[getCorpse]] | |||
}} | }} | ||
Latest revision as of 21:17, 4 September 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 of Objects
Alternative Syntax
- Syntax:
- origin nearSupplies [typeName, radius]
- Parameters:
- origin: Object or Array in format PositionAGL or Position2D
- typeName: String
- radius: Number
- Return Value:
- Array of Objects
Examples
- Example 1:
Additional Information
- See also:
- findNearestEnemy nearestBuilding nearestObject nearestObjects nearObjects nearestLocation nearEntities nearTargets nearestLocationWithDubbing nearObjectsReady nearRoads nearestMines getCorpse
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