Accessing C++ class variables in Trigger Blueprint

I am at the very beginning of trying to understand how UE4 works, so I am still having difficulties with the most basic stuff.

My problem is that I created a variable in MyCharacter class (Let’s say it is Health). I can access it inside MyCharacter Blueprint by using get method, very strasight forward. But I created a trigger box and want to write an even OnActionBeginOverlap. During this I want the Health of my character to decrease over time he spent in the trigger box. But how do I access MyCharacter Health inside trigger box event graph?


UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = Player)
	float Health;

Thanks.

Hi KamiSevy,

Do you already have a reference to MyCharacter that you can access inside the trigger box event graph?

I am aware only of ‘Get Player Character’ method that I can call, but I have no idea how to access the variable from there.