Wrist Menu - Attaching to Hand


Firstly I created a new input and just called it menu, Also I created a new socket on the hand mannequin under the skeleton tree which is where we are going to spawn the actor that holds the menu onto.


Next I called the new input which is name Menu and passed into a flip flop so when they press it the first time it spawns the actor that we named Wrist Menu and when we press it again it destroys the actor. Now in the spawn actor we want change the collision to always spawn and ignore collisions otherwise when we spawn it the character model will bug out and lastly we want to set the class to be the actor where we have the menu made then we save that value into a new variable which I named SpawnedWrist.


Lastly, we call a function called AttachActorToComponent from the saved variable and we pass in the target to be SpawnedWrist and the parent to be whatever controller you want which for me was the right controller and finally under socket name we pass in the name we gave to the socket in the mannequin which for me was S_Menu.


Leave a comment

Log in with itch.io to leave a comment.