Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UConditionalCompletion
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCompletions.h |
| Include | #include "LearningAgentsCompletions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCompletions.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void SetConditionalCompletion
&40;
const int32 AgentId,
const bool bIsCompleted
&41;
Remarks
Sets the data for this completion. Call during ULearningAgentsTrainer::SetCompletions event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id this data corresponds to. |
| bIsCompleted | Pass in true if condition is met. Otherwise, false. |