No categories assigned

LUA:DismissPet

Revision as of 20:07, 20 April 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: DismissPet() = Removes the given pet from the world, or in the case of a charmed pet releases it from the charm spell. ==== Syntax ==== DismissPet(param1) ===...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: DismissPet()

Removes the given pet from the world, or in the case of a charmed pet releases it from the charm spell.

Syntax

DismissPet(param1)


Parameters

Required - param1 (Spawn)
param1 is the pet we want to dismiss


Usage

function cast(Caster, Target)
	SummonPet(Caster, 340083)

end

function remove(Caster, Target)
	pet = GetPet(Caster)
	if pet ~= nil then
		DismissPet(pet)
	end
end

A normal pet spell.