No categories assigned

LUA:SummonCosmeticPet

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

LUA Functions: SummonCosmeticPet()

Summons a cosmetic pet for the given spawn

Syntax

SummonCosmeticPet(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the spawn getting the pet
param2 is the DB id of the pet to spawn


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.