I have 5 equipment parts:
head
chest
pants
feet
weapon

In the inspector, only 3 show up:
Head
Chest
Pants
(On the Combatant Component under Equipment)

I'm adding items via script, eg:
EquipShortcut es = new EquipShortcut(EquipSet.Weapon, weapon.ID, 1, 3);
combatant.Equipment.Equip(partIndex, es, null, true);

If I try to equip to a part not seen in the editor, it doesn't work. Equip returns false, but not further information when it fails. Why are the other parts hidden? Why don't they work? (Hidden is not checked in the ORK asset)
  • edited June 2016
    In the debugger:
    combatant.Equipment.equipment[x].Available = false for the ones not showing up.

    ie
    - [x] {ORKFramework.EquipPartSlot} ORKFramework.EquipPartSlot
    Available false System.Boolean
    Blocked false System.Boolean
    DisplayViewer true System.Boolean
    Equipment null ORKFramework.EquipShortcut
    Equipped false System.Boolean
    Linked false System.Boolean
    Locked false System.Boolean

    AvailableEquipment.equipPart is false on the ones not showing up as well. How do I get these to true?
    Post edited by deck2k on
  • Check your combatant's class if you've enabled those equipment parts.
    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.