File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Source/UnrealHelperLibrary Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ EBTNodeResult::Type UBTT_PlayAnimMontage::ExecuteTask(UBehaviorTreeComponent& Ow
2020{
2121 EBTNodeResult::Type Result = EBTNodeResult::Failed;
2222
23+ bIsAborting = false ;
2324 FUHLPlayAnimMontageMemory* MyMemory = CastInstanceNodeMemory<FUHLPlayAnimMontageMemory>(NodeMemory);
24-
25- AIOwner = OwnerComp.GetAIOwner ();
25+ AAIController* AIOwner = OwnerComp.GetAIOwner ();
2626 OwnerComponent = &OwnerComp;
27- if (!AIOwner. Get () )
27+ if (!AIOwner)
2828 {
2929 Result = EBTNodeResult::Failed;
3030 return Result;
Original file line number Diff line number Diff line change 33#pragma once
44
55#include " CoreMinimal.h"
6+ #include " Misc/EngineVersionComparison.h"
67#include " BehaviorTree/Services/BTService_DefaultFocus.h"
78#include " BTS_GameplayFocus.generated.h"
89
Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ class UNREALHELPERLIBRARY_API UBTT_PlayAnimMontage : public UBTTaskNode
4949private:
5050 bool bIsAborting = false ;
5151 TWeakObjectPtr<ACharacter> Character;
52- /* * Cached AIController owner of BehaviorTreeComponent. */
53- UPROPERTY (Transient)
54- TObjectPtr<AAIController> AIOwner;
52+
5553 UPROPERTY ()
5654 TObjectPtr<UBehaviorTreeComponent> OwnerComponent;
5755
You can’t perform that action at this time.
0 commit comments