Hello everyone,
I have a question concerning the LandedDelegate : AddDynamichttps://docs.unrealengine.com/4.27/en-US/API/Runtime/Engine/GameFramework/ACharacter/LandedDelegate/
Basically I want to trigger an event (change the value of a variable inside my class) when this event fires. However I have found nothing on how to use delegate for already existing event. Tutorials online are mostly about how to create your own delegate and event. The closer I could get are tutorial about BeginOverlap event but it looks totally different and the lack of domentation doesn’t help.
I already tried to create UPROPERTY FLandedSignature OnPlayerLand; but when I try to add the triggered function like this OnPlayerLand.AddDynamic(this, &AMyCharacter::RespondToLanded); I get an error message saying "This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Any help would be appreciated, thank you.