Hey Everyone I’m working on smart objects and state trees and I used this function to use the state tree that is attached to the smart object, I want to use this function in cpp but I couldn’t figure out how to do it I found this UAITask_UseGameplayInteraction::UseSmartObjectWithGameplayInteraction but I couldn’t use it because there isn’t much documentation or anything explained on how to use it with c++, I looked inside the class and found
UPROPERTY(BlueprintAssignable)
FGenericGameplayTaskDelegate OnFinished;
UPROPERTY(BlueprintAssignable)
FGenericGameplayTaskDelegate OnSucceeded;
UPROPERTY(BlueprintAssignable)
FGenericGameplayTaskDelegate OnFailed;
UPROPERTY(BlueprintAssignable)
FGenericGameplayTaskDelegate OnMoveToFailed;
these delegates that are broadcasting but they are in the protected section so I can’t access them so I wanted help or advice on how to use this task in c++.
Thank you