How to get a variable from a child actor to my Player blueprint?

Sounds good. So we’re not really picking anything up per se. There can be no actor to cast because the flashlight actor gets destroyed, right?


only thing Im really confused is how to set the variable Actor object reference to get the boolean “IsFlashlight picked up”.

There seems to be no need. What if the player had the variable IsFlashlight picked up → set it True when you pick it up.

  • player line traces against world objects → interface message to interact (you got this already)
  • the interface returns some data regarding the object (or you can even have the flashlight set the player’s var before it gets destroyed - not ideal, though)
  • the player can use the data interface returned to manipulate its own variables