- Home /
Armor Equipping for RPG Game
Ok so I think I found an easier way to do this. Again though, It relates to a script but this script seems like it'd be easier to code. Here's what I am doing.
Character Model = 90% Naked, has loincloth only. Each individual part of the body is its own mesh.
Head,Torso,Arms,Hands,Loincloth,Legs,Feet
Now if I duplicate the Torso and use the SkinnedMeshRenderer I can change the mesh and material to be that of an Iron Cuirass. (Imported Model)
So Sweet! Works great. However, I don't want him to always have the IronCuirass on as it's an RPG game that he can get new and improved armor or wants to run around shirtless. Plus my Torso mesh is same size as armor so it kinda looks cheesy. So I want to make Torso to be invisible while Iron Cuirass is equipped. (I have an inventory and Equip Menu that I can add script to, to make that happen. Except like i've said in other questions, my coder gave up on our game due to family conflicts. So I'm kinda trying to learn this whole coding process on my own. This is the "Stupified" version of what I am asking.
Character has no shirt. Runs down the road, finds an Iron Cuirass on the ground. Picks it up. (Adds 1 Iron Cuirass to inventory) Enters Inventory and equips Iron Cuirass. Character Skin Torso IsVisible = False Iron Cuirass IsVisible = True
How would I implement that into a script? Java or C# doesnt matter. Even UnityScript.
Thanks!
Answer by chrismcrae5712 · Feb 26, 2014 at 12:39 AM
If anyone is looking for the same answer. I figured out how to do this. Just let me know :)