Re: Wait for NavMeshAgent to move to position
Posted: Fri Jun 10, 2022 10:42 am
Aha, that should be easy to solve. Change your Sequence from:
to:
Also, in your custom sequencer command, you might want to add an OnDestroy() method that makes sure the NavMeshAgent is at its destination position in case the player clicks the continue button early.
If you don't want the player to be able to click the continue button during the navigation, you can change the sequence to:
Code: Select all
NavMeshDestination(Alfonso, Gramps)
Code: Select all
NavMeshDestination(Alfonso, Gramps)->Message(Arrived);
Continue()@Message(Arrived)
If you don't want the player to be able to click the continue button during the navigation, you can change the sequence to:
Code: Select all
SetContinueMode(false);
NavMeshDestination(Alfonso, Gramps)->Message(Arrived);
required SetContinueMode(true)@Message(Arrived);
Continue()@Message(Arrived)