nearSupplies: Difference between revisions
Lou Montana (talk | contribs) (Add alternative syntax) |
BrettMayson (talk | contribs) mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 10: | Line 10: | ||
|s1= origin [[nearSupplies]] radius | |s1= origin [[nearSupplies]] radius | ||
|p1= origin: [[Object]] or | |p1= origin: [[Object]] or [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] | ||
|p2= radius: [[Number]] | |p2= radius: [[Number]] | ||
| Line 18: | Line 18: | ||
|s2= origin [[nearSupplies]] [typeName, radius] | |s2= origin [[nearSupplies]] [typeName, radius] | ||
|p21= origin: [[Object]] or | |p21= origin: [[Object]] or [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]] | ||
|p22= typeName: [[String]] | |p22= typeName: [[String]] | ||
Latest revision as of 07:45, 2 January 2026
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 PositionAGL or Position2D
- radius: Number
- Return Value:
- Array of Objects
Alternative Syntax
- Syntax:
- origin nearSupplies [typeName, radius]
- Parameters:
- origin: Object or 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.
Only post proven facts here! Add Note