View Single Post
12/17/20, 07:26 AM   #4
andy.s
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 40
I think this should work, at least something similar works in my addon (in a more complex form), when I auto decline ready check if player is afk
Lua Code:
  1. EVENT_MANAGER:RegisterForEvent('election', EVENT_GROUP_ELECTION_REQUESTED, function(_, descriptor)
  2.     if descriptor == ZO_GROUP_ELECTION_DESCRIPTORS.READY_CHECK then
  3.         CastGroupVote(GROUP_VOTE_CHOICE_AGAINST)
  4.     end
  5. end)
  Reply With Quote