Method Player:SummonPet [-] [+]
Summons a Pet at the specified location.
Synopsis
pet = Player:SummonPet( entry, x, y, z, ang, petType )
pet = Player:SummonPet( entry, x, y, z, ang, petType, duration )
pet = Player:SummonPet( entry, x, y, z, ang, petType, duration, healthPct )
Arguments
number entryThe creature entry ID to summon.
Valid numbers: integers from 0 to 4,294,967,295.
number xX coordinate.
Valid numbers: all decimal numbers.
number yY coordinate.
Valid numbers: all decimal numbers.
number zZ coordinate.
Valid numbers: all decimal numbers.
number angOrientation angle.
Valid numbers: all decimal numbers.
PetType petTypeThe type of pet to summon.
number duration (0)Duration in milliseconds, 0 for permanent.
Valid numbers: integers from 0 to 4,294,967,295.
number healthPct (0)Initial health percentage.
Valid numbers: integers from 0 to 4,294,967,295.
Returns
Pet petThe summoned pet, or
nilif failed.