I am trying to get an ability from a combatant in a script in ORK Framework 3 but I am confused to the API call order I need to do in order to get it.

CombatantComponent.Combatant.Abilities.Get(int index) isnt a valid method,

the only overloads take a GUID string, an ability class or an ability shortcut class.

I added the line

Ability ability = ORK.Abilities.Get(index)

and then passed the ability variable into the first line of code; however, ability is always set to null no matter what index I put in.
Am I doing this right? I just need to get a better grasp of the API calls in ORK 3 so any help would be appreciated, thanks.

  • For reference I get a bad image format exception on TypeAsset on return of the ORK.Abilities.Get function.

    image
    image
  • Ok so like I did a bunch of things trying to fix this problem and I fixed it. I did it just the way I posted originally and it suddenly works. I am not sure what changed but whatever I am happy now
Sign In or Register to comment.