How to Change a Shapes Height in Level Blueprint

I am trying to dynamically change the height of a cube based on the triggerbox that is activated, but I haven’t been able to figure out how to make it perform the change on the target cube, all I have been able to figure out is how to get the value through the bounds, change the value, but how do I make that changed value affect the cube? Any help is greatly appreciated as this is my first attempt at learning UE5.

Hey @htrogers2001! Welcome to the forums!

Try to get some screenshots of your code!

Select the object and take a shot of the details window in the level, with the location, rotation, and scale- right below there there is an option for “Movable”, make sure that’s selected.

I’m thinking maybe you don’t have a link between the trigger box and the cube? Are they both on the same actor?



So I was under the impression, that by linking the trigger box to the cube itself, it would allow me to have the event trigger when the player collides with the box, but I can’t figure out the action that will change the shape’s Z scale.

Well okay then! Easy fix.

Firstly you can get rid of the cast! A cast is a “Mold”, it isn’t a method of communication. If something already IS what you’re casting to, it doesn’t do anything. :stuck_out_tongue:

Now to change the scale you want to use a “Set Scale” node with the static mesh of the cube blueprint as the target. :slight_smile: The variables you’ve brought in aren’t used- the Cube Z.