Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsInteractor
Description
This callback should be overridden by the Interactor and performs the action for the given agent in the world. The structure of the Action Elements given as input to this function will match that defined by the Schema.
| Name | PerformAgentAction |
| 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 PerformAgentAction
(
const ULearningAgentsActionObject * InActionObject,
const FLearningAgentsActionObjectElement & InActionObjectElement,
const int32 AgentId
)
Parameters
| Name | Remarks |
|---|---|
| InActionObject | Action Object. |
| InActionObjectElement | Input Actions Element. |
| AgentId | Agent Id to perform actions for. |