I'm using a Combatant HUD to display info (name, level, stats, etc.) when I click on a combatant in field and battle. In Combatant Settings of the HUDs menu, I select:
- Combatant Type: Group
- Start Index Offset: 0
- Limit List Length: Checked
- Maximum Length: 1
Displayed Groups: Player, Ally and Enemy.
Then, in code, I set a var named "combatant" to the combatant on which I clicked with a raycast and then I use:
combatantIndex = ORK.Game.Combatants.GetAll().FindIndex(x => x == combatant);
((CombatantHUDSetting)examineHUD.settings).groupStartOffset = combatantIndex;
It works perfectly when I click on members of the player group, but when I click on an enemy, it displays the info of a player combatant instead...
I can make it work when I uncheck "Displayed Groups: Ally". However, if all 3 are checked, it won't display enemies.
I think there is some kind of bug there...Right?