Pickup is visible after the ammo has been taken
Problem
Take pickup
Get up on the pickup respawn point
Spend all the ammo
Pickup respawns
Ammo is taken, but the pickup remains visible
What's happening
This happens due to the wrong execution order in ASTUBasePickup
:
Pickup respawns
Collision is set to
ECollisionResponse::ECR_Overlap
NotifyActorBeginOverlap
is calledPickup is taken and visibility is set to
false
But after that, visibility is set to
true
(line 4)
Solution
Just change the order:
Last updated
Was this helpful?