Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback can be optionally overridden by the Interactor to create an action modifier for a single agent. The structure of the Action Modifier Elements output by this function should match that of the actions defined by the Schema.
| Name | MakeAgentActionModifier |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsInteractor.h |
| Include Path | #include "LearningAgentsInteractor.h" |
UFUNCTION (BlueprintNativeEvent, Category="LearningAgents", Meta=(ForceAsFunction))
void MakeAgentActionModifier
(
FLearningAgentsActionModifierElement & OutActionModifierElement,
ULearningAgentsActionModifier * InActionModifier,
const ULearningAgentsObservationObject * InObservationObject,
const FLearningAgentsObservationObjectElement & InObservationObjectElement,
const int32 AgentId
)
Parameters
| Name | Remarks |
|---|---|
| OutActionModifierElement | Output Action Modifier Element. |
| InActionModifier | Action Modifier Object. |
| InObservationObject | Input Observation Object. |
| InObservationObjectElement | Input Observation Object Element. |
| AgentId | The Agent Id to make action modifiers for. |