how to cast to enemy to get the name variable

sorry for not getting it but how am i supposed to fix this? i removed the blue set but still it got the rest of the errors

I gave you the image of what you should do.
Here it again:


Do this connections and remove the crossed node :slight_smile:

i removed the crossed node but the connection is not happening, just in case is the set name the one from enemy or from the button widget?
and it seems in either case it just doesn’t connect with add child

the set name is from the button widget

i tried but it gives me this

click and hold on the result pin and then stop holding the button, it will appear all the nodes you can use, search for the “set name” node.

it gives me this, btw multiple set name are available and this is the one of the button widget

i tried to connect the target of set name to create select opponent button widget’s return value and i get no errors but when i ran it i got no enemy name but this( i mean the buttons on the left ), is there any way to change it to the variable name of the class enemy?



also the button widget blueprint was changed like this yesterday, should it really be like this?

i think i got it but can you check?

Yes it’s right, it should work properly :wink:

it works but because i added a couple more things in the enemy actor so that when the flipbook changes so does the name variable but for some reason it feels like the opposite name appears instead so is the problem in the enemy actor blueprint or in one of the widgets blueprints, here’s the images with the order of enemy, button widget, select opponent widget( the parent widget ),
any clue why that happens?



nevermind i found the problem, thanks for the help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.