Page 1 of 1

need help with coding

Posted: Sat Apr 28, 2007 6:06 pm
by KiWi
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

Posted: Sat Apr 28, 2007 9:44 pm
by Draco
{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';
    }

}

This is assuming you have the skins for both left and right weapons. MultiSkins[0] is the portion that contains the scope barrel. MultiSkins[1] is the side of the gun. Hope this helps you. Have a good one.

-Johnny Jones

Posted: Sun Apr 29, 2007 12:12 am
by KiWi
i can't seend that file to you trend says it got a virus when i go to send from hotmail and i know it don't have a virus :cry: i will see if canny can send it to you