Ok the issue is i create ammo and i created an ammobox but when my total ammo goes over the max ammo carry it dosent set it to my max ammo carry witch is annoying here a screenshot the comment “here” is the function to set total ammo to max ammo carry.
Please tell me how to fix it.
The problem is, that you are checking this in the OnTick event, but use a reference from the cast node, that is invalid in the Tick event. I would also put this in the PlayerCharacter blueprint in a custom event (or function if you need a return value). Here’s an example implementation: