View Single Post
01/07/16, 06:04 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by coolmodi View Post
Hey,

I have 2 questions:
  • The unitId and unitName of the mentioned event is always from the same unit, right?
  • Does anyone know when unitIDs change?


Edit: Ok, they definately change, just don't know on what condition(s) yet.
Yes they are from the same unit and:
Quote from: http://www.esoui.com/forums/showthread.php?p=21696#post21696
Originally Posted by ZOS_ChipHilseberg View Post
We've added a new function called GetAbilityIcon which takes the ability id and returns its icon path. We've also modified COMBAT_EVENT to pass numerical identifiers for the source and target so units with the same name can be separated. This ids are good for as long as the unit exists on the client. The same is true of EFFECT_UPDATED and its unit.
Although I have no idea what effect reloading the UI or zoning would have on the existence of a unit. Unfortunately there is no function to check and see if a unitId still exists.
  Reply With Quote