API PickupCompanion

From Wowpedia
Jump to: navigation, search

Places a companion onto the mouse cursor.

PickupCompanion("type", index)


String - companion type, either "MOUNT" or "CRITTER".
Number - index of the companion of the specified type to place on the cursor, ascending from 1.


  • You should only use this function to pick up mounts; for critters, this function has been superseded by C_PetJournal.PickupPet, and instead places an unusable spell on the cursor.

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): "CRITTER" pick-up broken.
Wrath of the Lich King Patch 3.0.2 (2008-10-14): Added.

See also