Download

Get Actor which triggers OnEndPlay

Hi,

I´m listening on a Event inside my LevelScriptActor.cpp.


SomeOtherActor->OnEndPlay.AddDynamic(this, &LevelScriptActor::SomeOtherActorEndPlaying);

The Event has following signature

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FActorEndPlaySignature, EEndPlayReason::Type, EndPlayReason)

So how do I know which Actor triggers the event when only EndPlayReason is given to the SomeOtherActorEndPlaying function?
Should I declare a new Event with DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams or how is the workflow normally?