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 entry

The creature entry ID to summon.

Valid numbers: integers from 0 to 4,294,967,295.

number x

X coordinate.

Valid numbers: all decimal numbers.

number y

Y coordinate.

Valid numbers: all decimal numbers.

number z

Z coordinate.

Valid numbers: all decimal numbers.

number ang

Orientation angle.

Valid numbers: all decimal numbers.

PetType petType

The 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 pet

The summoned pet, or nil if failed.

Generated on
©2016 - Eluna Lua Engine