<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?action=history&amp;feed=atom&amp;title=SetMyFacingAngle</id>
	<title>SetMyFacingAngle - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?action=history&amp;feed=atom&amp;title=SetMyFacingAngle"/>
	<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=SetMyFacingAngle&amp;action=history"/>
	<updated>2026-06-07T04:20:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=SetMyFacingAngle&amp;diff=161&amp;oldid=prev</id>
		<title>137.97.114.225 at 15:16, 18 March 2022</title>
		<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=SetMyFacingAngle&amp;diff=161&amp;oldid=prev"/>
		<updated>2022-03-18T15:16:40Z</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 15:16, 18 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-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&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;	if(message==&amp;quot;lookatme&amp;quot;)&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;	if(message==&amp;quot;lookatme&amp;quot;)&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;		local pos=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetPlayerPosition&lt;/del&gt;(playerid);local mypos=GetMyPos();&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;		local pos=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GetPlayerPos&lt;/ins&gt;(playerid);local mypos=GetMyPos();&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;		local angle=atan2(-(pos.x-mypos.x),pos.y-mypos.y)&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;		local angle=atan2(-(pos.x-mypos.x),pos.y-mypos.y)&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;		SetMyFacingAngle(angle);&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;		SetMyFacingAngle(angle);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>137.97.114.225</name></author>
	</entry>
	<entry>
		<id>https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=SetMyFacingAngle&amp;diff=144&amp;oldid=prev</id>
		<title>137.97.101.184: Created page with &quot;{{Welcome| desc= Sets the facing angle of an NPC| params=&lt;syntaxhighlight lang=&quot;lua&quot;&gt;(angle)&lt;/syntaxhighlight&gt; &lt;poem&gt;::angle : The new angle (in radians) for the NPC.&lt;/poem&gt;|...&quot;</title>
		<link rel="alternate" type="text/html" href="https://npc-for-vcmp.sourceforge.io/wikiw/index.php?title=SetMyFacingAngle&amp;diff=144&amp;oldid=prev"/>
		<updated>2022-03-15T14:52:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Welcome| desc= Sets the facing angle of an NPC| params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(angle)&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;poem&amp;gt;::angle : The new angle (in radians) for the NPC.&amp;lt;/poem&amp;gt;|...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Welcome| desc= Sets the facing angle of an NPC|&lt;br /&gt;
params=&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;(angle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;poem&amp;gt;::angle : The new angle (in radians) for the NPC.&amp;lt;/poem&amp;gt;|&lt;br /&gt;
example=&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPlayerText(playerid, message)&lt;br /&gt;
{&lt;br /&gt;
	if(message==&amp;quot;lookatme&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
		local pos=GetPlayerPosition(playerid);local mypos=GetMyPos();&lt;br /&gt;
		local angle=atan2(-(pos.x-mypos.x),pos.y-mypos.y)&lt;br /&gt;
		SetMyFacingAngle(angle);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;|&lt;br /&gt;
relfuncs=*[[GetMyFacingAngle]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>137.97.101.184</name></author>
	</entry>
</feed>