How to communicate between my player and collectibles BP?

Hi All,

I have a Blueprint as Actor class which is a collectible item of my game (Coins), I have place this Coins all over the level.
When my game character overlaps this coins they disappear (Visibly n collision is set to off), I don’t destroy the actor.
I want to have my coins back when my character respawn. I have setup respawn mechanics.

How can I communicate to Coins that my character has re-spawned?

There some way to do it:

  1. When player respawn, you can use GetAllActorOfClass to get all Coins and call some function to reset.
  2. Kind of complicated, make one Respawn Event function in PlayerController blueprint. At BeginPlay of Coins blueprint, GetPlayerController convert to that blueprint, then bind one of Coins event to Respawn Event of PlayerController, Then when your character get Respawn just call that Event from PlayerController, it will broadcast to any Coins blueprint you put in level, then the Event which you bind earlier will be called in Coins blueprint.

If you familiar with BP i suggest go for 2, it save performance than 1, unless you have like thousands of coins…

Yup it worked I went with the first option… to lazy to go for the second one… Thanks a lot

Yup it worked I went with the first option… to lazy to go for the second one… Thanks a lot