<?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%3ASetFollowTarget</id>
	<title>LUA:SetFollowTarget - 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%3ASetFollowTarget"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetFollowTarget&amp;action=history"/>
	<updated>2026-07-12T03:17:16Z</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:SetFollowTarget&amp;diff=4817&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SetFollowTarget() = Sets the spawns follow target  ==== Syntax ==== SetFollowTarget(param1, param2)   ==== Parameters ==== ; Required - ''param1'' (Spawn), ''par...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetFollowTarget&amp;diff=4817&amp;oldid=prev"/>
		<updated>2013-05-24T04:01:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SetFollowTarget() = Sets the spawns follow target  ==== Syntax ==== SetFollowTarget(param1, param2)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Spawn), &amp;#039;&amp;#039;par...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: SetFollowTarget() =&lt;br /&gt;
Sets the spawns follow target&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SetFollowTarget(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (Spawn)&lt;br /&gt;
: ''param1'' is the spawn that will be following the other&lt;br /&gt;
: ''param2'' is the spawn that the first is following&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Player)&lt;br /&gt;
    SetFollowTarget(NPC, Player)&lt;br /&gt;
    if not IsFollowing(NPC) then&lt;br /&gt;
        ToggleFollow(NPC)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This spawn script will have the spawn follow the last player to hail it.&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
Setting a follow target will not make the spawn follow it, for the spawn to start following you need to call [[LUA:ToggleFollow|ToggleFollow()]]&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>