Page 1 of 1
character controller
Posted: Sat Jan 21, 2023 1:01 pm
by mik60
I'm using dialogue system with invector. I need to turn the quest giver's character controller back on when the quest is completed, so he can follow waypoints. is there a simple way to do this?
Re: character controller
Posted: Sat Jan 21, 2023 2:59 pm
by Tony Li
Hi,
If you're using Invector's FSM AI, I don't recall if you can just disable and re-enable the component to make the NPC resume waypoints. If so, make sure the NPC is the Dialogue System Trigger's Conversation Conversant. Then add a Dialogue System Events component to the NPC. Configure the OnConversationStart() event to disable the AI and OnConversationEnd() to re-enable it.
Re: character controller
Posted: Sat Jan 21, 2023 5:35 pm
by mik60
Is there an event for quest successful? using the conversation start and end enables the controller after the quest is started.
Re: character controller
Posted: Sat Jan 21, 2023 7:07 pm
by Tony Li
Hi,
The OnConversationStart and OnConversationEnd events occur when a conversation starts or ends, respectively. They don't have anything to do with quest states.
The OnQuestStateChange event occurs when a quest changes state (e.g., from unassigned to active, or active to success).
More info:
Script Events/Messages
Re: character controller
Posted: Sun Jan 22, 2023 2:58 pm
by mik60
I got it working by adding a scene event to the end of the conversation.