Navigation
API > API/Plugins > API/Plugins/GameplayBehaviorSmartObjectsModu- > API/Plugins/GameplayBehaviorSmartObjectsModu-/AI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGameplayTask
- UAITask
- UAITask_UseGameplayBehaviorSmartObject
References
| Module | GameplayBehaviorSmartObjectsModule |
| Header | /Engine/Plugins/Runtime/GameplayBehaviorSmartObjects/Source/GameplayBehaviorSmartObjectsModule/Public/AI/AITask_UseGameplayBehaviorSmartObject.h |
| Include | #include "AI/AITask_UseGameplayBehaviorSmartObject.h" |
Syntax
UCLASS&40;&41;
class UAITask_UseGameplayBehaviorSmartObject : public UAITask
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bBehaviorFinished | ||
| bool | bShouldUseMoveTo | ||
| FSmartObjectClaimHandle | ClaimedHandle | ||
| TObjectPtr< UGameplayBehavior > | GameplayBehavior | ||
| TObjectPtr< UAITask_MoveTo > | MoveToTask | ||
| FDelegateHandle | OnBehaviorFinishedNotifyHandle | ||
| FGenericGameplayTaskDelegate | OnFailed | ||
| FGenericGameplayTaskDelegate | OnMoveToFailed | ||
| FGenericGameplayTaskDelegate | OnSucceeded |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAITask_UseGameplayBehaviorSmartObject
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Abort () |
||
| UAITask_UseGameplayBehaviorSmartObject * | MoveToAndUseSmartObjectWithGameplayBehavior
(
AAIController* Controller, |
Helper function to create an AITask that reaches and interacts with the SmartObject slot using the GameplayBehavior definition. | |
| void | OnSlotInvalidated
(
const FSmartObjectClaimHandle& ClaimHandle, |
||
| void | OnSmartObjectBehaviorFinished
(
UGameplayBehavior& Behavior, |
||
| void | SetClaimHandle
(
const FSmartObjectClaimHandle& Handle |
||
| void | SetShouldReachSlotLocation
(
const bool bUseMoveTo |
||
| bool | |||
| UAITask_UseGameplayBehaviorSmartObject * | UseClaimedSmartObject
(
AAIController& Controller, |
||
| UAITask_UseGameplayBehaviorSmartObject * | UseSmartObjectComponent
(
AAIController& Controller, |
||
| UAITask_UseGameplayBehaviorSmartObject * | UseSmartObjectWithGameplayBehavior
(
AAIController* Controller, |
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. |
Overridden from UGameplayTask
| Type | Name | Description | |
|---|---|---|---|
| void | Activate () |
Called to trigger the actual task once the delegates have been set up Note that the default implementation does nothing and you don't have to call it | |
| void | OnDestroy
(
bool bInOwnerFinished |
End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending. | |
| void | TickTask
(
float DeltaTime |
Tick function for this task, if bTickingTask == true |
Overridden from IGameplayTaskOwnerInterface
| Type | Name | Description | |
|---|---|---|---|
| void | OnGameplayTaskDeactivated
(
UGameplayTask& Task |
Notify called after GameplayTask changes state from Active (finishing or pausing) |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| UAITask_UseGameplayBehaviorSmartObject * | UseGameplayBehaviorSmartObject
(
AAIController* Controller, |
Please use one of the UseSmartObjectWithGameplayBehavior functions using claim handle instead |