Hi Gil,

sorry to bother you with something that simple, but I am trying for several hours already, unable to find out what is the API command to add a specific combatant to active player group. I was checking your API list and trying following variants:

ORK.Game.ActiveGroup.Leader.Group.Join(27, true, true);

I was experimenting with combatant name instead of 27 and several variants... (27 is the number of combatant in our list)

Can you please help me out here?

Thank you very much in advance,
SaVe
  • The join function requires a Combatant object, not the ID or name - i.e. you have to create the combatant (as explained in this how-to).

    So, the code for this would be:

    Combatant combatant = ORK.Combatants.Create(id, ORK.Game.ActiveGroup);
    combatant.Init();


    id would be the ID/index of the combatant.
    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!
Sign In or Register to comment.