<?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%3ASpawnSetByDistance</id>
	<title>LUA:SpawnSetByDistance - 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%3ASpawnSetByDistance"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SpawnSetByDistance&amp;action=history"/>
	<updated>2026-07-12T07:43:39Z</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:SpawnSetByDistance&amp;diff=5078&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SpawnSetByDistance() = Does a spawn set on all spawns within the given distance of the given spawn   ==== Syntax ==== SpawnSetByDistance(param1, param2, param3, ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SpawnSetByDistance&amp;diff=5078&amp;oldid=prev"/>
		<updated>2013-09-12T21:30:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SpawnSetByDistance() = Does a spawn set on all spawns within the given distance of the given spawn   ==== Syntax ==== SpawnSetByDistance(param1, param2, param3, ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: SpawnSetByDistance() =&lt;br /&gt;
Does a spawn set on all spawns within the given distance of the given spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SpawnSetByDistance(param1, param2, param3, param4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (float), ''param3'' (string), ''param4'' (string)&lt;br /&gt;
: ''param1'' is the spawn to use as a center point&lt;br /&gt;
: ''param2'' is the distance around the spawn to apply the command to&lt;br /&gt;
: ''param3'' is the variable&lt;br /&gt;
: ''param4'' is the value to set the variable to&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
    SpawnSetByDistance(Spawn, 25.5, &amp;quot;visual_state&amp;quot;, 1234)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When this NPC is hailed all spawns within 25.5 units from the player will have its visual state set to 1234&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>