As discussed in another post (sorry for not separated the questions earlier..), I am not able to make the Player walk to a marker using the "Character > Move to" interaction or "Walk-to marker" field in the Hotspot script. I am using Direct Movement Method and Manual Motion Control, and switch to Automatic Motion Control with:
if (AC.KickStarter.stateHandler.IsInGameplay ())
{
canControl = true;
AC.KickStarter.player.motionControl = AC.MotionControl.Manual;
}
else
{
canControl = false;
AC.KickStarter.player.motionControl = AC.MotionControl.Automatic;
}
You suggested to use AC.KickStarter.player.IsPathfinding (); to check if the player is under path finding. I tried without succeed. When I check with Debug.Log(AC.KickStarter.player.IsPathfinding ());, I found that:
1. During cutscene, it correctly return true and can walk to the marker.
2. During the conversation interaction, it always return false even the blue line is shown in the Scene window when an interaction of Character > Move to is running, but the player doesn't move.
3. The "Walk-to marker" field in the Hotspot script doesn't do anything, not even show the blue line, and the interaction just go on normally.
Right now I am tackling this by using cutscenes to make the player walk to marker. But hope to find a more convenient solution. I suspect AC.KickStarter.player.IsPathfinding () only returns true when the gameplay is paused? Is there an action of script that can pause the gameplay just like when running the cutscene?
Thanks for your help
Comments
2. What is the When running field of the Conversation Interaction set to? Try checking List active ActionLists in Game window? at the bottom of the Settings Manager - what does it say at the time that IsPathfinding should be true?
3. AC does have a check for input when using Direct control while moving to a Hotspot in that the "move to Hotspot" command can be cancelled if input is made. Is the Hotspot's Cutscene while moving? option checked?
3. I realized I forgot to choose Walk to Marker in Player action. But when I do, it gives this error no matter the Cutscene while moving is checked:
Also, what is your pathfinding method set to? Is your default NavMesh assigned in the Scene Manager, if the method requires one?
But is it in the Character Move to interaction, I can uncheck Pathfind? so it works without a NavMesh; while the Walk to Marker option in Hotspot always need a NavMesh?