No categories assigned
LUA:GetCharmedPet
- Last edited 12 years ago by I need to Update My Profile
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.