Hello,
I’m struggling to figure out how to get to the combatants object variables via code. Can anyone point me in the right direction? I can’t seem to find out how to do it via the current documentation.
  • If you have the Combatant class instance of the combatant, you can simply access them via the Variables property, e.g.:
    combatant.Variables.Set("key", "value");

    For more information on scripting with combatants (also on getting combatant from a game object, etc.), see this documentation.
    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!
  • Ah ok, I’ll give that a try
Sign In or Register to comment.