PlayerLocation:CreateFromChatLineID()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in :CreateFromChatLineID FrameXML/ObjectAPI/PlayerLocation.lua.

Identifies the author of a received message in the chat window

location = PlayerLocation:CreateFromChatLineID(lineID)
location:SetCreateFromChatLineID(lineID)

Arguments

lineID
number - Refer to 11th parameter in CHAT_MSG_... events such as CHAT_MSG_CHANNEL.

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