CollectArea is null when press pickup
I adapt the PowerUp tutorial to my need.
I drop a C++ actor directly on my level (I don't use the Blueprint currently) and I add to the actor a box component to check overlapping actors
PickableArea is correctly initialized inside the constructor. When I press the key to my action
I always go in the else code. The PickupArea becomes NULL and I don't use any code that assing PickableArea to NULL.
The other actor components are not null (1 SpringArm and 1 Camera).
PS: do you provide the Blueprint/Level data for the PowerUp tutorial?
asked Jan 14 '16 at 09:32 PM in C++ Programming
I answer my question by removing the c++ actor from the level. After I inherit a BP actor from my c++ actor, I was able to use the Pickable area.
Don't know why it is not possible to use the c++ actor. So fixed by using a BP class.
answered Jan 17 '16 at 10:59 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here