I am trying to get the GUID of a combatant but I noticed that the Combatant's GUID obtained via this code:
Combatant _attacker = ORKComponentHelper.GetCombatant(attackerObject);
string _atkGUID = _attacker.GUID;
Debug.Log("Combatant GUID is " + _atkGUID);
is different from the Combatant's GUID shown in the Editor.
Am I using the wrong function?
  • edited March 28
    You'll want to use the GUID from the settings, i.e.:

    The GUID directly on the combatant instance is the instance GUID it receives from the combatant handler that keeps track of all combatants, similar to how items in inventory or learned abilities are kept track of.
    They all have a unique in-game GUID to e.g. allow implementing client-server synchronizations to identify instances.
    Post edited by gamingislove on
    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!
  • Perfect, thank you :)
Sign In or Register to comment.