Hi, so I have followed a basic tutorial for throwing and picking up rocks. There are two blueprints, the first being the blueprint for the rocks themselves. The second being the blueprint that keeps track of how many rocks the player has which is located in the player blueprint. The problem is that sometimes when I pick up too many rocks at a time the game forgets to add the rock to the variable that keeps track of how many rocks the player has and gives me the following error in the attachment below named: ERROR. One thing to mention is that this tutorial is for UE4 and I’m using it for UE5. Could that be the issue?
Tutorial link: How To Throw A Rock At An Enemy To Stun Them | Pick Up Rocks - Unreal Engine 4 Tutorial - YouTube
Error Image:
Code in rock blueprint:
Code in player blueprint: