WoW:API GetSelectedFriend

Revision as of 19:07, 11 September 2005 by WoWWiki>Flickering (New function document)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetSelectedFriend - Documentation by Flickering

Returns the index of the currently selected friend.

friendIndex = GetSelectedFriend()

Parameters

Returns

friendIndex
friendIndex
Integer - The index (1-based) of the friend which is currently selected (highlighted) on the friend list. Will return 0 if you have no friends.

Details

This function is necessary because indexes can change in response to friend status updates.

Template:WoW API