|
Post by NitoH on Feb 11, 2015 10:04:01 GMT 1
Hello Guys! Your inventory system is awesome!
I have a question, and if you can give me a little advice where to start it would be awesome!
What i want to achive is when i equip an armor, it should change the current mesh in my character.
So i have a modular naked character, it has torso, hands, legs, and head. And when i equip an armor, it wouldn't attach to a socket, rather replace my current mesh, in this example the torso.
If you can give me guide lines or tips, in playmaker actions, and in your system what should i change, i would be fantastic!
Thank you guys! Cheers!
|
|
|
Post by Super Admin on Feb 12, 2015 9:48:43 GMT 1
That is interesting thing you are asking, i liked that in gothic series when you get new armor you character looks different and entire mash changes. One wauy of doing this is that you have a few different materials prepared with different textures in your project and when you equip certain armor set different texture on your mesh. This approach is good if you have simpler models and you can do job with different textures. Other way of doing this would be to change mesh directly by uilding a hierarchy of GameObjects where you have one parent representing the character and that has a child that contains the model/material/mesh. Now you only need to change that particular child by deleting the current one and adding the new one. Here is the example: Cheers!!!
|
|