Beta Documentation - Subject to change.

Gets the pet of the player.

Syntax

Lua
function Player:GetPet();

Returns

Type: Pet
The player's pet.

Remarks

If the player has a pet, this will return their Actor object.

See Also