Difference between revisions of "LUA:DismissPet"
(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) ===...") |
(No difference)
|
Latest revision as of 20:07, 20 April 2013
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.