need help with coding

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

need help with coding

Unread postby KiWi » Sat Apr 28, 2007 11:06 pm

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 postby Draco » Sun Apr 29, 2007 2:44 am

{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

User avatar
KiWi
Posts: 10
Joined: Sat Mar 31, 2007 10:37 am
Location: New Zealnd
Contact:

Unread postby KiWi » Sun Apr 29, 2007 5:12 am

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


Return to “Game Mappers and Coders”

Who is online

Users browsing this forum: No registered users and 1 guest