PlayerLocationMixin :IsValid()
Jump to navigation
Jump to search
- This function is implemented in
.:IsValid FrameXML/ObjectAPI/PlayerLocation.lua
- This function is implemented in
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
- Patch 8.0.1 (2018-07-17): Added.[1]
External links
- GitHub FrameXML, Gethe
- Globe "wut?" Tool, Townlong-Yak
References
- ^ 2018-07-19, PlayerLocation.lua, version 8.0.1.27144, near line 51, archived at Townlong-Yak