My player pawn is extended from Character class. In C++, I use GetCapsuleComponent() to get collision component , and then I use “OnComponentBeginOverlap” to call my function ,when my pawn overlaps other actors (in my case, Pickup actor).
Based on UE4 Documents I have to use codes something like this:
Problem is , there is no AddDynamic() in “OnComponentBeginOverlap” ! and I can’t find out the problem…!