I'm trying to print the name of the combatant number x in the active player group. When I use Debug.Log(ORK.Game.ActiveGroup.GetMember(x)) it only works when x == 0. Otherwise, it just returns null, even if ORK.Game.ActiveGroup.Size == 4 and x < 4.

I'm using ORK version 2.31.0 beta 3.
  • The GetMember function will get the member based on the combatant ID/index. You can just get the whole group via GetGroup (or battle group via GetBattle) and iterate through the returned combatant list:
    List<Combatant> list = ORK.Game.ActiveGroup.GetGroup();
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Oh! Thanks!
Sign In or Register to comment.