Reply To: Condition Question

Forums 💬 NodeCanvas 🗨️ General Discussion Condition Question Reply To: Condition Question

#14415
Gavalakis
Keymaster

    Sure. So here what you need to do in the source code:

    1) Open up ConditionTask.cs and add this code:

    2) Open up FSMState.cs and add this code in line #104 just before the OnEnter(); call:

    3) Also in FSMState.cs add this code in line #158 just before the OnExit(); call:

    So now you can override OnEnable and OnDisable in your condition tasks to handle what you are after 🙂

    Cheers!