Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/UCollisionMonitorHelper
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsHelpers.h |
| Include | #include "LearningAgentsHelpers.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsHelpers.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void SetComponent
&40;
const int32 AgentId,
UPrimitiveComponent &42; Component,
const FName OtherComponentTag
&41;
Remarks
Sets the component to monitor for collisions. Generally this should be called on the `ULearningAgentsManagerComponent::AgentsAdded_ event.
Parameters
| Name | Description |
|---|---|
| AgentId | The agent id to associate this component with. |
| Component | The component to monitor for collisions. |
| OtherComponentTag | The tag other components must have to trigger collisions. |