Can't change variable
Hello, I Want to create a simply gold system, but the gold variable doesen't change Can anyone help?
PS: Sorry for my bad English
asked Nov 06 '15 at 06:52 PM in Blueprint Scripting
Is your ActorBeginOverlap event firing when you overlap the coin? Is the coin being destroyed on overlap? If not, then the issue can be that the ActorBeginOverlap event is never firing.
Also, it looks like you're storing your Gold variable inside of the Gold Actor, which is being destroyed. When the actor is destroyed, the variable is also destroyed, which means you'll need to keep track of the Gold variable inside another blueprint such as the player controller, character, game mode, etc. This is most likely the issue.
Follow this question
Once you sign in you will be able to subscribe for any updates here