I am trying to use simple weapon sockets and basic animation to take a sword out from my hip to my right hand, however ive tried multiple different code to do so and they all are ending in the same result, its playing the animation but the weapon is not swapping from the hip to the right hand, here is the code i am currently using.
Hey @BlazeCloudGames!
So you shouldn’t need the “Move Component To” node as far as I am aware, I’ve always just used the “Attach Component To Component” at a specific notify point.
If you take that off, and change the Location/Rotation rules to “Keep Relative” that should work… I may be off on the rules, it may be the third option- but you definitely want to keep scale at “Keep World”.
Hi Mind-Brian, it doesn’t work, I’ve tried multiple variations of this code, nothing seems to work, the problem is everything works but the weapon doesn’t want to go to the righthand socket. I am actually streaming right now if you wanted to take a closer look, not sure if you have a twitch account.
Or if anyone wants to help threw twitch = Twitch
So is nothing happening at all? Or is it just attaching strangely?
If it isn’t attaching at all, you want to make absolutely sure that the socket name and the target socket name are identical! If they’re even the SLIGHTEST bit different they will not match up.
It could also be something to do with the notify- try throwing a printstring up right after the montage “Begin Notify” and before the rest of the code to make sure it’s going off.
I copied and pasted the names, and triple made sure, the sword will attach to the hip as the parent, or if i set the parent to righthand socket it will attach, but it wont switch from hip to right hand threw the simple animation i made at all.
If anyone has any idea why this isn’t working, I’m trying to fix it today so I can move on. I am available to jump on twitch if you want to see what exactly is going on to help, thanks.
Fixed it this morning, I had to use “Montage Notify” instead of just a normal notify.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


