<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-new.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_func_getNearestCargos</id>
	<title>DCS func getNearestCargos - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-new.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_func_getNearestCargos"/>
	<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;action=history"/>
	<updated>2026-10-23T15:29:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=14220&amp;oldid=prev</id>
		<title>Grimes at 00:07, 21 March 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=14220&amp;oldid=prev"/>
		<updated>2022-03-21T00:07:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:07, 21 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Class Functions|getNearestCargos]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Class Functions|getNearestCargos]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Game Patch 2.5.5|getNearestCargos]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
	<entry>
		<id>https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=10020&amp;oldid=prev</id>
		<title>Grimes at 20:52, 17 July 2019</title>
		<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=10020&amp;oldid=prev"/>
		<updated>2019-07-17T20:52:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:52, 17 July 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|notes=  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|notes=  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Class Functions|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;getRadar&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Class Functions|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;getNearestCargos&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
	<entry>
		<id>https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=10018&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Template:dcs_funcs  |fName= getNearestCargos  |vNum= 2.5.5  |par1= Unit  |par2=   |par3=   |par4=  |desc= Returns a table of friendly cargo objects indexe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;diff=10018&amp;oldid=prev"/>
		<updated>2019-07-17T20:50:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Template:dcs_funcs  |fName= getNearestCargos  |vNum= 2.5.5  |par1= &lt;a href=&quot;/view/DCS_Class_Unit&quot; title=&quot;DCS Class Unit&quot;&gt;Unit&lt;/a&gt;  |par2=   |par3=   |par4=  |desc= Returns a table of friendly cargo objects indexe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:dcs_funcs&lt;br /&gt;
&lt;br /&gt;
|fName= getNearestCargos&lt;br /&gt;
&lt;br /&gt;
|vNum= 2.5.5&lt;br /&gt;
&lt;br /&gt;
|par1= [[DCS_Class_Unit|Unit]]&lt;br /&gt;
&lt;br /&gt;
|par2= &lt;br /&gt;
&lt;br /&gt;
|par3= &lt;br /&gt;
&lt;br /&gt;
|par4=&lt;br /&gt;
&lt;br /&gt;
|desc= Returns a table of friendly cargo objects indexed numerically and sorted by distance from the helicopter. &lt;br /&gt;
&lt;br /&gt;
Returns nil if used on any object other than a helicopter. &lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|rtnExample= A table of unit objects. &lt;br /&gt;
&lt;br /&gt;
    {&lt;br /&gt;
        [1] = {&lt;br /&gt;
            [&amp;quot;id_&amp;quot;] = 16777728,&lt;br /&gt;
        },&lt;br /&gt;
    [2] = {&lt;br /&gt;
            [&amp;quot;id_&amp;quot;] = 16777984,&lt;br /&gt;
        },&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|reqType1= Class&lt;br /&gt;
&lt;br /&gt;
|reqName1= Self&lt;br /&gt;
&lt;br /&gt;
|reqType2=&lt;br /&gt;
&lt;br /&gt;
|reqName2=&lt;br /&gt;
&lt;br /&gt;
|optType1=&lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
|examples= This could be used in a function to find the nearest ammo crate to a given helicopter:&lt;br /&gt;
&lt;br /&gt;
    local cargo = Unit.getByName(&amp;#039;whoopwhoop&amp;#039;):getNearestCargos&lt;br /&gt;
    for i = 1, cargo do&lt;br /&gt;
        if Object.getDesc(cargo[i]).typeName == &amp;#039;ammo_cargo&amp;#039; then&lt;br /&gt;
            return cargo[i]&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
|related= [[DCS_Class_Unit|&amp;#039;&amp;#039;&amp;#039;Unit Functions:&amp;#039;&amp;#039;&amp;#039;]] {{listOfScriptingUnitFuncs}}&lt;br /&gt;
[[DCS_Class_Object|&amp;#039;&amp;#039;&amp;#039;Object Functions:&amp;#039;&amp;#039;&amp;#039;]] {{listofScriptingObjectFuncs}}&lt;br /&gt;
&lt;br /&gt;
[[DCS_Class_Coalition_Object| &amp;#039;&amp;#039;&amp;#039;Coalition Object Functions:&amp;#039;&amp;#039;&amp;#039;]] {{listofScriptingCoaObjectFuncs}}&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
}}&lt;br /&gt;
[[Category:Class Functions|getRadar]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
</feed>