Modular characters - changing parts in game play

Hi there.

Im trying to set up a modular character using the seperate objects skinned to the same skeleton technique and I was able to set the parts up and have them animate together. However is there a way I can change one body part for another during game play? For example when a player runs over a body part in the world, its automatically equiped and replaces the previous one? I imagine I’ll have to use some variables and set them accordingly when I want to change the peieces?

Any ideas?

What type are the body parts? Static Mesh? Skeletal Mesh? I’m visualizing this as a vehicle or something? If the components of the ‘body’ are in fact a form of Mesh then simply replace that components mesh on the character to the new mesh.

Hi thanks for the reply, i didn’t think of replacing the componets like that. The body parts are all skeletal meshes skined to the same skeleton. I need to ask though how exactly do I go about replacing the skeletal mesh components. I assumed it would be th same as setting a new material. I found what I believe is the corrrect node(s), “set skeletal mesh”. I cast to the character in the level bluerprint but nothing is happening and i cant see why.

Im trying to replace the boxy torso with the bulkier one.

Figured it out. I read there was a but in 4.8 where the set skeletal mesh node doesnt work. I loaded up 4.10 and everything worked as intended. Thanks Jtsmith.

Awesome, glad you got it figured out!

So what exactly is the work around to this problem? I am trying to do something similar, so is the above method the working method?