Reply To: Custom Node with 3 outputs

Forums 💬 NodeCanvas 🗨️ General Discussion Custom Node with 3 outputs Reply To: Custom Node with 3 outputs

#14996
dsedov
Participant

    Ohhh…

    virtual public void OnPortConnected(index int)
    virtual public void OnPortDisconnected(index int)

    this exactly what I need. Can I rely on the index variable to ensure that first connection does X, second does Y and third does Z. For example in case if I need to only use first and third I could connect an empty action to the second slot.

    To clarify – my characters have a list of abilities. Each ability has three states (cooking, performing, cool down). Depending on the ability I may need to perform some action during the start of each state. Ability is one node, that goes through each state internally.