<?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_getHeading</id>
		<title>MIST getHeading - 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_getHeading"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getHeading&amp;action=history"/>
		<updated>2026-04-30T00:42:05Z</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_getHeading&amp;diff=1007&amp;oldid=prev</id>
		<title>Grimes at 22:57, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getHeading&amp;diff=1007&amp;oldid=prev"/>
				<updated>2018-04-13T22:57:15Z</updated>
		
		<summary type="html">&lt;p&gt;&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.getHeading|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 1.0&lt;br /&gt;
&lt;br /&gt;
|desc= Returns the value of the specified unit heading in radians|&lt;br /&gt;
&lt;br /&gt;
|rtnType= number&lt;br /&gt;
&lt;br /&gt;
|reqType1= Unit&lt;br /&gt;
&lt;br /&gt;
|reqName1= unit&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= boolean&lt;br /&gt;
&lt;br /&gt;
|optName1= Cartesian&lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
|varExamples= unit = Unit Object&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= 0.17&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;code&amp;gt;&lt;br /&gt;
do&lt;br /&gt;
:local myUnit = Unit.getByName('unitsName')&lt;br /&gt;
&lt;br /&gt;
:local heading = mist.getHeading(myUnit)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= optional variable added with mist 3.4&lt;br /&gt;
&lt;br /&gt;
The mission editor uses a solely a Cartesian coordinate system while the game world displays some data in Latitude and Longitude. Heading directions will not likely match between these two coordinates. Use the optional variable if you are spawning AI or objects to be in a certain orientation. Do not use the optional variable if you want to use the compass heading of a given unit in game. &lt;br /&gt;
&lt;br /&gt;
|funcs= {{listOfMistUnitOrientation}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|getHeading]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>