How would I add coins to a quiz if answer is correct in third person template. I am working in widget blueprints for the quiz.
Hi Alyssa.K1986.
I would recommend you creating a variable in your player controller to store the number of correct answers.
In your widget, you can access your player controller and set the data appropriately.
I have created a very quick widget example. I created a function called “ValidateAnswer” so I do not have to repeat any logic.
PlayerController:
Widget:
Results: