Forums › 💬 NodeCanvas › ⚙️ Support › [Bug] Wait `elapsedTime` doesn't increase in sub dialogue trees
Create a behavior tree, start a sub dialogue tree, have a task with the “Wait” action.
Expected: wait will complete after designated time
Observed: wait never completes, reports elapsed time as zero.
See Discord discussion between Alex Schearer and aFoolsDuty for more details.
The fix for this:
Open up NestedDT.cs, go to ‘OnExecute’, add this block just above return status:
return status
Oh. I don’t know how I missed that! :-/ The fix @guyboots_thunderbro posted is the correct one (thanks!). For your convenience, I’ve also attached for you here the whole file in a unitypackage.