Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
This function is implemented in :CreateFromUnit FrameXML/ObjectAPI/PlayerLocation.lua.

Identifies any player having a UnitId.

location = PlayerLocation:CreateFromUnit(unit)
location:SetUnit(unit)

Arguments[]

unit
string - UnitId such as "target".

Returns[]

location
table - New PlayerLocationMixin.

Details[]

  • Use the first function to create a new table pointing to the player, or the second to reassign an existing table to that player.

Patch changes[]

Battle for Azeroth Patch 8.0.1 (2018-07-17): Added.[1]

External links[]

References[]

 
  1. ^ 2018-07-16, PlayerLocation.lua, version 8.0.1.27101, archived at Townlong-Yak