Cast Failed

Hi Everyone :slight_smile:

i have a problem, everytime i try to change the size of a capsule inside “MyCharacter” it doesn´t work…
The Capsule is supposed to change its size if i press “X”, but instead the “cast failed” is activated which doesn´t do anything too

it would be great if someone could help me :slight_smile:

Does it work if you plug a reference to your character object into the cast node’s Object input pin?

Hi ,
thanks for the quick reply :smiley:

do you mean it like this?

13750-node.png

it doesn´t work :frowning:

What’s the context here? I mean, are you trying to do this in a Level BP, some character BP, or something else?

You need to connect an object to the cast. I am not at my PC right now and can’t make a screenshot, but if this is a 3rd or first person shooter you need to call get player pawn or get controlled pawn or something like that and connect it to the object input pin. Otherwise you need to get a direct reference to this pawn somehow. Can’t say for certain without seeing more of your blueprints.

i am trying to do this in a level blueprint, sorry that i forgot to mention this ^^"

Hi ,
you saved my day :smiley: the get player character did the trick for my :slight_smile:

Japanese Translation