Noobquestion Regarding CustomEvent Target

Hi there, so im learning right now how to do stuff on Unreal so this question might be too easy. But im stuck here anyway. Below are 2 Screens of my events. Basically what i am trying to do is when you press “F” near the WinButtonEvent the Character should be teleportet to another place, be hidden, disable input (and have a wall with “you win” infront of him) sounds pretty silly but its me just testing around and learn to do stuff

So my Problem lies with the “hide” part as the below event (Screen1) should fire an event i added on the ThirdPersonCharacter (Screen2) that hides the Characters Mesh

Problem is, it needs a Target and i cant for the love of god figure out what it wants me to put in there.
(if it simply is the other blueprint please tell me how i get a reference for it <_<)

Please help and thanks in advance

-Epidj

There is a specific helper function to get the character you currently control. It is called GetPlayerCharacter. You get the same result if you use the PlayerController reference and use its function called GetControlledPawn.
Either way you still need to cast the reference to let the compiler know that it is able to use your custom function on the ThirdPersonCharacter. You do this with the CastToThirdPersonCharacter node.

Works.
Thanks a lot for the fast Help.
:slight_smile: