No categories assigned

LUA:GetCosmeticPet

Revision as of 21:12, 20 April 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetCosmeticPet() = Gets the cosmetic pet for the given spawn ==== Syntax ==== GetCosmeticPet(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.