<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=GetNearestDoor</id>
	<title>GetNearestDoor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=GetNearestDoor"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetNearestDoor&amp;action=history"/>
	<updated>2026-04-30T02:13:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetNearestDoor&amp;diff=3420&amp;oldid=prev</id>
		<title>28days: Created page with &quot;{{Info|Function|Client|1.0}}  {{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with CreateDoor.}}  {{FuncSyntax|GetNearestDoor(x, y, z...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetNearestDoor&amp;diff=3420&amp;oldid=prev"/>
		<updated>2020-01-01T14:04:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Function|Client|1.0}}  {{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with &lt;a href=&quot;/wiki/CreateDoor&quot; title=&quot;CreateDoor&quot;&gt;CreateDoor&lt;/a&gt;.}}  {{FuncSyntax|GetNearestDoor(x, y, z...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with [[CreateDoor]].}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetNearestDoor(x, y, z)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|x|The X axis}}&lt;br /&gt;
{{FuncParam|y|The Y axis}}&lt;br /&gt;
{{FuncParam|z|The Z axis}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|the door identifier on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
local x, y, z = GetPlayerLocation()&lt;br /&gt;
local doorId = GetNearestDoor(x, y, z)&lt;br /&gt;
&lt;br /&gt;
if doorId ~= 0 then&lt;br /&gt;
    print(&amp;quot;No nearby door was found.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{DoorFunctions}}&lt;/div&gt;</summary>
		<author><name>28days</name></author>
	</entry>
</feed>