sourceIndex

Parameters

sourceIndex

the index of the entity that dealt the hit that resulted in this headbar. If the target avatar is a player, add 0x10000 to the real index value (0-2048). If the target avatar is a NPC, set the index as it is. If there is no source, set the index to -1. The index will be used for rendering purposes, as both the player who dealt the hit, and the recipient will see the selfType variant, and everyone else will see the otherType variant, which, if set to -1 will be skipped altogether.