i used the first person template and wanted to try(for learning purposes that you would have to be pressing E while standing in the weapon sphere) but my code doesnt work unfortunately. the delegate is normally called in blueprints, but it doesnt work also the OnSphereBeginOverlap gets called everytime i start the game eventhough my player doesnt overlap with the sphere. Also after the trypickup fuction gets called once everytime an overlap happens after that and i try to pick up the overlapped actor gets reset to a nullptr so it doesnt even try to brodcast the delegate
Here is the BP delegate subscription and my code:
the trypickup function gets called by my character successfully