Node1 Sequence before Node2 Condition
Posted: Mon May 09, 2022 7:02 am
Hi there!
Okay, let me explain you my problem (I couldn't find and answer in the forum):
In the node Launch I want to call a function which will return a result (Success or Failure) in a variable number of seconds (Which I cannot know beforehand). In the connecting nodes I have a LuaRegistered Function which checks the variable in which I store the result of my function from before.
My problem is that I don't know how to make the connecting nodes to wait for the Launch function to finish. I've been trying several things but I cant find the proper way to do it.
If I, for example, use a script with a coroutine inside, the moment I reach any "yield return something" the conditions get called.
I've tried to use a Custom sequence too but the conditions get called even before reaching the Awake Functionof the Custom Sequence.
I'm sure I'm missing something, but I cannot find what it is.
Thanks in advance!
Okay, let me explain you my problem (I couldn't find and answer in the forum):
In the node Launch I want to call a function which will return a result (Success or Failure) in a variable number of seconds (Which I cannot know beforehand). In the connecting nodes I have a LuaRegistered Function which checks the variable in which I store the result of my function from before.
My problem is that I don't know how to make the connecting nodes to wait for the Launch function to finish. I've been trying several things but I cant find the proper way to do it.
If I, for example, use a script with a coroutine inside, the moment I reach any "yield return something" the conditions get called.
I've tried to use a Custom sequence too but the conditions get called even before reaching the Awake Functionof the Custom Sequence.
I'm sure I'm missing something, but I cannot find what it is.
Thanks in advance!