need help with coding
need help with coding
how do get the c-ops name on the gun to be the same on both side and in 3rd viw i got all the pics made but i don't know wat coding to get them to work ??
Re: need help with coding
{C-oPs} KiWi wrote:how do get the c-ops name on the gun to be the same on both side and in 3rd viw i got all the pics made but i don't know wat coding to get them to work ??
Code: Select all
function setHand(float Hand)
{
Super.SetHand(Hand);
if (Hand == 1 )
{
//left-handed
Mesh = mesh(DynamicLoadObject("mesh-name-left",class'Mesh'));
MultiSkins[0] = Texture'upside-done-facing-scope-texture';
MultiSkins[1] = Texture'backwards-facing-side-of-gun';
}
else
{
//right-handed
Mesh = mesh'mesh-name-right';
MultiSkins[0] = Texture'correct-facing-scope-texture';
MultiSkins[1] = Texture'correct-facing-side-of-gun';
}
}
-Johnny Jones