<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetOrigY</id>
	<title>LUA:GetOrigY - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetOrigY"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetOrigY&amp;action=history"/>
	<updated>2026-07-14T08:00:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:GetOrigY&amp;diff=8200&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|GetOrigY}}   = LUA Functions: GetOrigY() = Gets the original spawn location x value for the spawn   ==== Syntax ==== GetOrigY(param1)   ==== Parameters =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetOrigY&amp;diff=8200&amp;oldid=prev"/>
		<updated>2019-08-31T00:27:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|GetOrigY}}   = LUA Functions: GetOrigY() = Gets the original spawn location x value for the spawn   ==== Syntax ==== GetOrigY(param1)   ==== Parameters =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|GetOrigY}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: GetOrigY() =&lt;br /&gt;
Gets the original spawn location x value for the spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
GetOrigY(param1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn)&lt;br /&gt;
: ''param1'' is the spawn we want to get the original location for&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function MoveBackToSpawn(NPC)&lt;br /&gt;
    local x = GetOrigX(NPC)&lt;br /&gt;
    local y = GetOrigY(NPC)&lt;br /&gt;
    local z = GetOrigZ(NPC)&lt;br /&gt;
    MoveToLocation(NPC, x, y, z)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When this function is called it would make the spawn move back to its spawn point&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>