Hello there!
I rarely post on forums because I always feel guilty of stealing people’s time but in this case i’m way over my head on this topic :s
I’ve been following some tutorials on youtube from Ryan Laley (specifically the dialogue on and the begining of the ai ones) and trying to piece stuff together to fit my needs. His Ai tuts are design to make an ennemy npc, where I just want a simple interactable villager NPC or something as such.
Here is what i seem to understand. I have an NPC with a small trigger box attached to him. When I interact with him pressing E and being in its trigger zone, it starts a task to create my dialogue widget and stop the player and player camera from moving and switch to the npc camera for nice framing.
When the dialogue lines runs out, I get the control and camera back to my player. (Not shown here is the line index graph to tell me where am I in the dialogue)
Here is what’s in my dialogue create. I don’t know if it’s relevant but i’d rather be thorough just in case
I’ve been wondering initially if I should use the StopMovement or StopMovementImmediately or have a AiMoveTo referenced to itself withing this graph, so the npc would stop when the DialogueCreate is being executed. But Since i’m using the AI system to make it walk around it doesn’t seem to work.
Here is what I was thinking of for the AI graph
Running the bottom right sequence works fine on its own. So i was thinking of Checking of the Npc is being interacted with. If so, then stop, if not then run the bottom right sequence.
On my sequences IsBeingTalkedTo, I use a boolean varialble IsAiTalking from the blackboard So I though it it’s yes run the left tree if it’s not run the right tree. I was hoping to set this boolean value within my Task_IsTalking.
Here’s whats in the two tasks
and the other
this one feels pretty hacked but I had no idea of to get the StopMovement from here.
So in the end I have no idea if my whole thiking process is off, If I messed up the behaviour tree branching or if it’s something simple. Like I said I’m a bit out of my range there :s I’m an Env artist and my own brain is probably as badly wirred for tech stuffs as this Ai graph :s
Anyhow if anyone have a suggestion you’d have my eternal gratitude <3