PickupCompanion

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 3.0.2 / 1.15.0

Places a mount onto the cursor.

PickupCompanion(type, index)

Arguments

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

Details

  • 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 changes

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

See also