How to retrieve variables from a component

I want to create a parameter in a Widget using a Weapon Component variable. I tried to cast the component to create a bind, but I don’t know what to connect to the object. As an alternative, I tried to call the variable from the Controller, but I can’t do it.



1 Like

Your player is using the component, right?

Then use

1 Like

Where should I create that node?
I don’t know how to create a My Actor Component.

Drag from here and search for the name of your component

image

Always make new nodes by dragging from previous ones :slight_smile:

1 Like

He’s not coming out. ( ;∀;)


Have you added the weapon component to your player?

How did you add it? ( is it part of the player, or did you add it later with a script etc )

1 Like

It goes like this.
Probably added by script

How about this?

1 Like

I could do it!
Thank you very much !!!!

1 Like