<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.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.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_func_getNearestCargos"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_func_getNearestCargos&amp;action=history"/>
		<updated>2026-04-24T11:34:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.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.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 class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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.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.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 class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|notes= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|notes= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;getRadar&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&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.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.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('whoopwhoop'):getNearestCargos&lt;br /&gt;
    for i = 1, cargo do&lt;br /&gt;
        if Object.getDesc(cargo[i]).typeName == 'ammo_cargo' 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|'''Unit Functions:''']] {{listOfScriptingUnitFuncs}}&lt;br /&gt;
[[DCS_Class_Object|'''Object Functions:''']] {{listofScriptingObjectFuncs}}&lt;br /&gt;
&lt;br /&gt;
[[DCS_Class_Coalition_Object| '''Coalition Object Functions:''']] {{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>