Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/UConditionalReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsRewards.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void SetConditionalReward
&40;
const int32 AgentId,
const bool bCondition
&41;
Remarks
Sets if the agent should receive a reward. Call during ULearningAgentsTrainer::SetRewards event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id this data corresponds to. |
| bCondition | If the agent should receive a reward this iteration. |