nearSupplies: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{RV\|type=command \| arma3 \| *([0-9]\.[0-9]{2}) * \|gr1=(.*) \|(.*) \|(.*) \|p1=(.*) \|p2=(.*) \|(.*) \|x1=(.*) \|seealso=(.*) \}\} " to "{{RV|type=command |game1= arma3 |version1= $1 |gr1=$2 |descr=$3 |s1=$4 |p1=...)
(Add alternative syntax)
 
(20 intermediate revisions by 2 users not shown)
Line 8: Line 8:
|descr= Find supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius.
|descr= Find supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius.


|s1= origin '''nearSupplies''' radius
|s1= origin [[nearSupplies]] radius


|p1= origin: [[Object]] or [[Array]] in format [[PositionAGL]] or [[Position2D]]
|p1= origin: [[Object]] or [[Array]] in format [[Position#PositionAGL|PositionAGL]] or [[Position#Introduction|Position2D]]


|p2= radius: [[Number]]
|p2= radius: [[Number]]


|r1= [[Array]] - array of [[Object]]s
|r1= [[Array]] of [[Object]]s


|x1= <code>_list = [[player]] [[nearSupplies]] 50;</code>
|s2= origin [[nearSupplies]] [typeName, radius]


|seealso= [[findNearestEnemy]], [[nearestBuilding]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestLocation]], [[nearEntities]], [[nearTargets]], [[nearestLocationWithDubbing]], [[nearObjectsReady]], [[nearRoads]]
|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>


{{GameCategory|arma3|Scripting Commands}}
|seealso= [[findNearestEnemy]] [[nearestBuilding]] [[nearestObject]] [[nearestObjects]] [[nearObjects]] [[nearestLocation]] [[nearEntities]] [[nearTargets]] [[nearestLocationWithDubbing]] [[nearObjectsReady]] [[nearRoads]] [[nearestMines]] [[getCorpse]]
{{GameCategory|arma3|New Scripting Commands}}
}}

Latest revision as of 21:17, 4 September 2022

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 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:
_list = player nearSupplies 50;

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