Navigation
API > API/Plugins > API/Plugins/CommonConversationRuntime
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UConversationNode
- UConversationNodeWithLinks
- UConversationTaskNode
- UConversationLinkNode
References
| Module | CommonConversationRuntime |
| Header | /Engine/Plugins/Experimental/CommonConversation/Source/CommonConversationRuntime/Public/ConversationTaskNode.h |
| Include | #include "ConversationTaskNode.h" |
Syntax
UCLASS&40;Abstract, Blueprintable&41;
class UConversationTaskNode : public UConversationNodeWithLinks
Remarks
Task are leaf nodes of behavior tree, which perform actual actions
Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
- ExecuteTask
- AbortTask
- TickTask
- OnMessage
If your node is not being instanced (default behavior), DO NOT change any properties of object within those functions! Template nodes are shared across all behavior tree components using the same tree asset and must store their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() ) The ConversationTaskNode is the basis of any task in the conversation graph, that task may be as simple as saying some text to the user, and providing some choices. However more complex tasks can fire off quests, can spawn actors, pretty much any arbitrary thing you want.
The conversation system is less about just a dialogue tree, and more about a graph of actions the NPC can take, and choices they can provide to the player.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bHasDynamicChoices | EDITOR ONLY VISUALS: Does this task generate dynamic choices? | |
| uint32: 1 | bHasRequirements | EDITOR ONLY VISUALS: Does this task internally have requirements? | |
| bool | bIgnoreRequirementsWhileAdvancingConversations | This setting is designed for requirements that only matter when option is generated. | |
| FLinearColor | DefaultNodeBodyColor | Default color of the node. | |
| TArray< TObjectPtr< UConversationSubNode > > | SubNodes | Requirements and side effects. |
Functions
Overridden from UConversationNode
| Type | Name | Description | |
|---|---|---|---|
| FName | Get the name of the icon used to display this node in the editor |