need help with coding

Game Content Creation
KiWi
Posts: 10
Joined: Sat Mar 31, 2007 5:37 am
Location: New Zealnd

need help with coding

Unread post 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 ??
Image

A strong man will stand up for himself but a stronger man will stand up for others
Draco

Re: need help with coding

Unread post 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
KiWi
Posts: 10
Joined: Sat Mar 31, 2007 5:37 am
Location: New Zealnd

Unread post 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
Image

A strong man will stand up for himself but a stronger man will stand up for others
Post Reply

Return to “Game Mappers and Coders”