No categories assigned

LUA:GetCosmeticPet

LUA Functions: GetCosmeticPet()

Gets the cosmetic pet for the given spawn

Syntax

GetCosmeticPet(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's cosmetic pet we want to get


Usage

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

end

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

A cosmetic pet spell.