Difference between revisions of "LUA:GetCharmedPet"
(Created page with "= LUA Functions: GetCharmedPet() = Gets the charmed pet of the given spawn ==== Syntax ==== GetCharmedPet(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''para...") |
(No difference)
|
Latest revision as of 20:10, 20 April 2013
LUA Functions: GetCharmedPet()
Gets the charmed pet of the given spawn
Syntax
GetCharmedPet(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's charmed pet we want to get
Usage
function cast(Caster, Target) Charm(Caster, Target) end function remove(Caster, Target) pet = GetCharmedPet(Caster) if pet ~= nil then DismissPet(pet) end end
A charm spell script.