Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsTrainer.h |
| Include | #include "LearningAgentsTrainer.h" |
UFUNCTION&40;BlueprintNativeEvent, Category&61;"LearningAgents"&41;
void SetRewards
&40;
const TArray< int32 > & AgentIds
&41;
Remarks
During this event, all rewards/penalties should be set for each agent.
Parameters
| Name | Description |
|---|---|
| AgentIds | The list of agent ids to set rewards/penalties for. |
See Also
LearningAgentsRewards.hfor the list of available rewards/penalties.
GetAgent to get the agent corresponding to each id.