#i set it in event graph and and it won't
1 messages ยท Page 1 of 1 (latest)
Ah I thought you meant at runtime ๐
Are you talking about the arrow component that comes automatically with a character blueprint?
yes
Yeah unfortunately that one is added natively and doesn't have a transform exposed, as you probably noticed already
Can you try moving this 'Set Relative Rotation' in the Construction script instead?
like this?
yes! - If you place that in the construction script, you might see it in the blueprint's viewport. If you don't, at least you'll see it in the level before pressing play.
If not, what I usually do is place a second arrow component manually that I can position just like I want - and completely ignore the native arrow
yea it's a hardcoded one. If you really need to, you can destroy it at runtime.
Did the construction script work?
no
well at least i haven't tested it yet but the viewport still shows the wrong way
i'm following a JRPG combat tutorial and I am using paperZD characters rather than regular ones
Oh ok - Lemme open Unreal real quick and test it out
sry for previous deleted message haha - wrong thread.
oh ok
i could rotate the character to match the arrow but that might not work right idk
he'll be backward in the viewport
Usually, that arrow is meant to indicate the character's forward axis, so that's probably a good idea to align them
Maybe the tutorial handles input vs movement direction in a reversed manner compare to more traditional ways
it's not for movement
i did that earlier but have a similar issue with the arrow and i want to fix it
ok I think I found a way ๐
what is it?
Interestingly - if you try to reference the arrow component in the construction script, it tells you it's not exposed in BP
BUT there's a way around it:
basically get all the child components of the parent component, cast to check if it's an arrow component and rotate it
You can also use IsA (soft) branching instead of cast if you don't want the hard class reference
But the cast can be useful if you need to change other arrow settings, like size, length or color
now it works
awesome ^-^
thanks for the help, i'll message if i need anything else
you can even override its position too if you prefer having the arrow at the root