GetPlayerCharacter in Blueprint

I’m using UE 4.11 and VS 2015 Enterprise. I’m following the tutorial video from UE in Youtube about programming in C++. In the 11th video entitled : Setting Up the Battery’s Construction Script, there’s a part (at 1:15) where the tutor called a function GetPlayerCharacter in the construction script blueprint of BP_BatterPickup. This function no longer exist in UE 4.11 and can only be called in the event graph. Is this true or am I doing something wrong?

Is there an alternate function for this?

Or is that function now intended to be only in the event graph?

are you working on the new version of that tutorial?

11th video named (Adding power to the game)

Hi Saeedc, it seems there’s a miscommunication here. There’s a sticky note in Youtube. But that sticky note does not exist if you download the video and watch it offline. I watched it offline, hence it confuses me. Sorry my bad.

This is this question resolved then?

It turns out that there’s a sticky note in Youtube mentioning that it should be put in the event graph and not in the construction script. Because the construction script is executed immediately once it is spawn (either in gameplay or in the UE editor). If spawned in UE editor, then GetPlayerCharacter will always returned null (explained in the next video). It can cause many confusion and bugs. Probably this is one of the reason UE removed it from the construction script.