Navigation
API > API/Plugins > API/Plugins/GameplayBehaviorSmartObjectsModu- > API/Plugins/GameplayBehaviorSmartObjectsModu-/AI > API/Plugins/GameplayBehaviorSmartObjectsModu-/AI/UAITask_UseGamep-
References
| Module | GameplayBehaviorSmartObjectsModule |
| Header | /Engine/Plugins/Runtime/GameplayBehaviorSmartObjects/Source/GameplayBehaviorSmartObjectsModule/Public/AI/AITask_UseGameplayBehaviorSmartObject.h |
| Include | #include "AI/AITask_UseGameplayBehaviorSmartObject.h" |
| Source | /Engine/Plugins/Runtime/GameplayBehaviorSmartObjects/Source/GameplayBehaviorSmartObjectsModule/Private/AI/AITask_UseGameplayBehaviorSmartObject.cpp |
UFUNCTION (BlueprintCallable, Category="AI|Tasks",
Meta=(DefaultToSelf="Controller", BlueprintInternalUseOnly="true"))
static UAITask_UseGameplayBehaviorSmartObject * MoveToAndUseSmartObjectWithGameplayBehavior
(
AAIController * Controller,
FSmartObjectClaimHandle ClaimHandle,
bool bLockAILogic,
ESmartObjectClaimPriority ClaimPriority
)
Remarks
Helper function to create an AITask that reaches and interacts with the SmartObject slot using the GameplayBehavior definition. The AITask performing the move to slot location and then executing the GameplayBehavior.
Parameters
| Name | Description |
|---|---|
| Controller | The controller that will move to the slot location and for which the attached pawn will take part to the GameplayBehavior. |
| ClaimHandle | The handle to an already claimed slot. |
| bLockAILogic | Indicates if the task adds UAIResource_Logic to the set of Claimed resources |