When I try to use Wait Action, I noticed elapedTime always is 0 even when it is running.
The same when I create my own custom action.
I debug elapedTime property from OnUpdate() and it keep showing 0.
I’m using latest nodecanvas asset(ie:imported asset this monday)
Hmm. Is by any chance the Graph Paused, or you have set Time.timeScale to 0 by any means?
I can’t really reproduce Elapsed Time not being updated correctly here and seems to works fine.
If neither of the above is the case and you still experience this issue, could you please send me a small reproduction project to “support_AT_paradoxnotion.com” ?
Thanks for the screenshots.
I can understand the confusion now. 🙂
Because you are using a Parallel, all it’s child nodes are always executed. Because though, the Parallel is set to return on “First Success Or Failure” and the condition on the right side, is indeed returning Failure, that means that the Action on the left, is immediately interrupted even though it still get’s the chance to execute for 1 frame because it is a child (even if indirect) of the Parallel node. But it still gets interrupted on that same frame.
If you want to just always run the child nodes of the Parallel regardless of what they return, then probably a good way to do this, would be to Decorate the condition on the right withe “Optional” Decorator, and as such the Parallel will not care for what status that condition returns.
Please let me know if that clarifies why this is happening, or not 🙂
Thanks.
thanks is working now.
I knew there some problem with how i design my node.
I think the problem i always see tree linearly top bottom (ie: parent to child)
hence the confusion on my part:)