EVENT GROUP UPDATE

From ESOUI Wiki

Jump to: navigation, search

This event fires after the group UnitTags have been updated.

Simple Usage Example

The local function OnGroupUpdate is called when the group unit tags were updated. The function displays a message in the chat window with the old and new group unit tag.

local groupUnitTag = GetGroupUnitTagByIndex(GetGroupIndexByUnitTag("player")) or "nil"
 
local function OnGroupUpdate(eventCode)
	local newGroupUnitTag = GetGroupUnitTagByIndex(GetGroupIndexByUnitTag("player"))
	d("Your group unit tag changed from '"..groupUnitTag.."' to '"..newGroupUnitTag)
	groupUnitTag = newGroupUnitTag
end
 
EVENT_MANAGER:RegisterForEvent("MySimpleUsageExample", EVENT_GROUP_UPDATE, OnGroupUpdate)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox