<?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%3AIsEntity</id>
	<title>LUA:IsEntity - 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%3AIsEntity"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:IsEntity&amp;action=history"/>
	<updated>2026-07-13T06:53: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:IsEntity&amp;diff=8203&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;{{PageHeaderChild|LUA|IsEntity}}   = LUA Functions: IsEntity() = Checks to see if the given spawn is an entity   ==== Syntax ==== IsEntity(param1)   ==== Parameters ==== ; Req...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:IsEntity&amp;diff=8203&amp;oldid=prev"/>
		<updated>2019-08-31T00:32:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeaderChild|LUA|IsEntity}}   = LUA Functions: IsEntity() = Checks to see if the given spawn is an entity   ==== Syntax ==== IsEntity(param1)   ==== Parameters ==== ; Req...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeaderChild|LUA|IsEntity}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= LUA Functions: IsEntity() =&lt;br /&gt;
Checks to see if the given spawn is an entity&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
IsEntity(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 check&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 AttackTarget(NPC, Target)&lt;br /&gt;
    if IsEntity(Target) then&lt;br /&gt;
        Attack(NPC, Target)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When this function is called it will verify the target is an entity then attack it if it is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
Only Entities can engage in combat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NPC, Player, Pet, Bot, Merc are all entities&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>