PlayerLocationMixin:IsValid()

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

Indicates the PlayerLocation validly identifies a player.

isValid = location:IsValid()

Returns

isValid
boolean - Returns true when appropriate methods have been used to uniquely identify a player; otherwise false.

Details

  • Reasons for returning false include:
    • The mixin was manually prepared and not yet assigned to a player
    • An invalid reference was used, such as a GUID that does not exist
    • A 'relative' reference like a UnitId was used, but currently does not point to a player (ie, "target" while targetting an NPC)

Patch changes

External links

References

 
  1. ^ 2018-07-19, PlayerLocation.lua, version 8.0.1.27144, near line 51, archived at Townlong-Yak