<?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=MIST_dynAddStatic</id>
		<title>MIST dynAddStatic - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_dynAddStatic"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_dynAddStatic&amp;action=history"/>
		<updated>2026-04-26T12:37:31Z</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=MIST_dynAddStatic&amp;diff=777&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.dynAddStatic  |vNum = Mist 3.3  |desc=With valid data, this function will dynamically spawn a static object as defined by the passed vars to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_dynAddStatic&amp;diff=777&amp;oldid=prev"/>
				<updated>2018-04-12T06:36:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.dynAddStatic  |vNum = Mist 3.3  |desc=With valid data, this function will dynamically spawn a static object as defined by the passed vars to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.dynAddStatic&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 3.3&lt;br /&gt;
&lt;br /&gt;
|desc=With valid data, this function will dynamically spawn a static object as defined by the passed vars to categoryName for countryName using the built in scripting function coalition.addStaticObject.&lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= vars&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= {{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= string&lt;br /&gt;
|r1N= type&lt;br /&gt;
&lt;br /&gt;
|r2T= string/number&lt;br /&gt;
|r2N= country&lt;br /&gt;
&lt;br /&gt;
|r3T= string/number&lt;br /&gt;
|r3N= category&lt;br /&gt;
&lt;br /&gt;
|r4T= number&lt;br /&gt;
|r4N= x&lt;br /&gt;
&lt;br /&gt;
|r5T= number&lt;br /&gt;
|r5N= y&lt;br /&gt;
&lt;br /&gt;
|r6T=&lt;br /&gt;
|r6N= &lt;br /&gt;
&lt;br /&gt;
|o1T= string&lt;br /&gt;
|o1N= groupName/name&lt;br /&gt;
&lt;br /&gt;
|o2T= number &lt;br /&gt;
|o2N= groupId&lt;br /&gt;
&lt;br /&gt;
|o3T= boolean&lt;br /&gt;
|o3N= clone&lt;br /&gt;
&lt;br /&gt;
|o4T= boolean&lt;br /&gt;
|o4N= dead&lt;br /&gt;
&lt;br /&gt;
|o5T= number&lt;br /&gt;
|o5N= heading&lt;br /&gt;
&lt;br /&gt;
|o6T= &lt;br /&gt;
|o6N=&lt;br /&gt;
&lt;br /&gt;
|r1D= is the object type name of the object that is to be spawned&lt;br /&gt;
|r2D= is the country name the group will spawn for&lt;br /&gt;
|r3D= is the category of the static object to spawn&lt;br /&gt;
|r4D= is the x coordinate of the vec2 coordinate defining where this object will spawn&lt;br /&gt;
|r5D= is the y coordinate of the vec2 coordinate defining where this object will spawn&lt;br /&gt;
|r6D=&lt;br /&gt;
&lt;br /&gt;
|o1D=  is an optional variable that defines the group name. If not present the function will generate a new name based on country, category, and groupId. '''If it is the same as a pre-existing group, this function will overwrite and remove that group existing from the mission.''' &lt;br /&gt;
|o2D= is an optional variable that defines the group Id. If not present the function will generate a new group Id based off of the number of existing groups. '''If it is the same as a pre-existing groups Id, this function will overwrite and remove that existing group from the mission.''' &lt;br /&gt;
|o3D= is an optional variable that defines whether or not it should treat the passed group data as a clone. If present it will create a new group Id and groupName regardless if you passed a custom name or Id.&lt;br /&gt;
|o4D= is an optional variable defining if the object will be rendered as destroyed once it is spawned&lt;br /&gt;
|o5D= is the heading the object will be point in. If not present a heading between 0 and 359 degrees will be chosen at random. &lt;br /&gt;
|o6D=  &lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= groupDataTable&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;pre&amp;gt;&lt;br /&gt;
local vars = &lt;br /&gt;
{&lt;br /&gt;
 type = &amp;quot;Airshow_Crowd&amp;quot;,&lt;br /&gt;
 country = 'USA', &lt;br /&gt;
 category = &amp;quot;Fortifications&amp;quot;, &lt;br /&gt;
 x = -281290.125,&lt;br /&gt;
 y = 646987.4375,&lt;br /&gt;
 name = &amp;quot;Static Crowd&amp;quot;, &lt;br /&gt;
 heading = 0.47123889803847,&lt;br /&gt;
}&lt;br /&gt;
mist.dynAddStatic(vars)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
 &lt;br /&gt;
|funcs= {{listOfMistDynAddFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|dynAddStatic]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>