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 * UseSmartObjectWithGameplayBehavior
(
AAIController * Controller,
FSmartObjectClaimHandle ClaimHandle,
bool bLockAILogic,
ESmartObjectClaimPriority ClaimPriority
)
Remarks
Helper function to create an AITask that interacts with the SmartObject slot using the GameplayBehavior definition This version starts the interaction on spot so the actor needs to be at the desired position. The AITask executing the GameplayBehavior.
Parameters
| Name | Description |
|---|---|
| Controller | The controller 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 |