I have this Widget that I put on the viewport through a GameMode C++ class
This Widget has this function thanks to which I can change the TextBlock inside the Widget itself
Now, I use this function to update a TextBlock which indicates the Pickup taken (is it a weapon, a shells pack or anything like that).
So for example, if I pickup a Pistol the TextBlock text will be “Pistol”.
The problem is that I want to call the ChangeText function inside my FirstPersonCharacter.cpp, BECAUSE IT’S THERE that I have the AddWeapon(), AddHealth(), AddArmor() function.