Bug with EVENT_UNIT_CREATED and GetUnit*
I tried to get the unit name of newly joined group members and found that it does not work as expected.
Here is the code I tested it with: Lua Code:
When I make a new group, I get one EVENT_UNIT_CREATED for myself which is fine, but for some reason I get two events for whoever I invited. Besides that everything works fine in all three events. Code:
unit created: group1 @sirinsidiator (true) Code:
unit created: group3 (true) |
This probably isn't very helpful, but here is a snippet I found in the lua files. It looks like they call a delay when a unit is created (or destroyed) and then call self:BuildMasterList() to rebuild all of the group data from scratch. So whatever is causing it, this is probably a known issue. They do the same when a unit is destroyed.
ZO_GroupList_Manager.lua Lua Code:
|
All times are GMT -6. The time now is 03:07 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI