How to get access to some variable of blueprint which is a part of another blueprint?

Huy from mount
Mon, 05 Feb 2024 01:15:52 +0000
Programming & Scripting

I have a flashlight blueprint that contains a light source with an intensity variable. I added the flashlight blueprint to the first-person character by dragging the flashlight blueprint into the character blueprint viewport.

The flashlight blueprint follows this scheme (with auto receive input set to player 0).

While the flashlight dragged into the world reacts to button presses, the flashlight on the character does not.

So, I think I should manipulate the character’s flashlight directly. To do this, I need to somehow get access to the character’s flashlight intensity in the character blueprint. How can I achieve this, or is there another solution?"

4 posts - 3 participants