https://dev.playonset.com/index.php?title=GetNearestDoor&feed=atom&action=historyGetNearestDoor - Revision history2024-03-29T05:39:20ZRevision history for this page on the wikiMediaWiki 1.41.0https://dev.playonset.com/index.php?title=GetNearestDoor&diff=3420&oldid=prev28days: Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with CreateDoor.}} {{FuncSyntax|GetNearestDoor(x, y, z..."2020-01-01T14:04:25Z<p>Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with <a href="/wiki/CreateDoor" title="CreateDoor">CreateDoor</a>.}} {{FuncSyntax|GetNearestDoor(x, y, z..."</p>
<p><b>New page</b></p><div>{{Info|Function|Client|1.0}}<br />
<br />
{{FuncDescription|Gets the nearest door from the specified XYZ vector created earlier with [[CreateDoor]].}}<br />
<br />
{{FuncSyntax|GetNearestDoor(x, y, z)}}<br />
<br />
{{FuncParameters}}<br />
{{FuncParam|x|The X axis}}<br />
{{FuncParam|y|The Y axis}}<br />
{{FuncParam|z|The Z axis}}<br />
<br />
{{FuncReturnValue|the door identifier on success.}}<br />
<br />
== Example ==<br />
<syntaxhighlight lang="Lua"><br />
local x, y, z = GetPlayerLocation()<br />
local doorId = GetNearestDoor(x, y, z)<br />
<br />
if doorId ~= 0 then<br />
print("No nearby door was found.")<br />
end<br />
</syntaxhighlight><br />
<br />
{{RelatedFunctions}}<br />
{{DoorFunctions}}</div>28days