UDK is Unreal Engine 3 – the complete professional development framework. All the tools you need to create great games, advanced visualizations and detailed 3D simulations. The best tools in the industry are in your hands.

Report article RSS Feed Adding Characters To UDK

i.e. Enemies and Players dont have the same model, a intermediate tutorial with a video to acompany it as per a request (video does not have a commentary cus i dont have a mic and i cant be arsed to go to the shops and buy one)

Posted by Jok3r098 on Dec 13th, 2010
Intermediate Client Side Coding.

To fulfill a request for a written version of this, here is a written version of this :P

First Of All:
I used Uncodex and Notepad ++, if you use a different piece of software thats fine as long as you know how to do the same things that i do.

Now Open Up UDK but minimise it (DONT CLOSE IT,or youll be stuck later)

So step One i guess:
Open up uncodex, make sure your tree is nice and up to date, then look for a class called UTFamilyInfo. Within this class there should be a subclasses and a subclass within that. Select the first Subclass (UTFamilyInfo_Liandri) and click on "copy class name". now create a new subclass of (UTFamilyInfo), paste in the name into the name box and change the last bit (for example i called mine 'UTFamilyInfo_Soldier' because the model i was going to use looked like a soldier, always give things sensible names) now create a subclass underneath that subclass and call it (UTFamilyInfo_Soldier_Male), replacing soldier with whatever you called yours.

Step Two? i know im not very good at breaking this up.
Open up your two new classes in Notepad++ (or whatever you use) and open up the classes that you copied the nams from (if your having trouble watch the video in HD and you should see what im on about).
Now We're going to copy the content from one into the other for both sets (ie. we copy the content from UTFamilyInfo_Liandri into UTFamilyInfo_Soldier, and UTFamilyInfo_Liandri_Male into UTFamilyInfo_Solder_Male), then find the places where names are wrong , so at the top of both documents there is a class definition change the bits ther that say 'Liandri' to 'Soldier' (or whatever, im gonna keep calling it soldier). You Should Also Change the Faction And Family ID, i used 'SOLD' for the FamilyID and 'Soldier' For the Faction.

Step Three. More Code Editing :D what fun!
Changing the model!, open up UDK from your taskbar go into your content browser and find your skeletal mesh of your character (i used the built in Soldier one because im lazy and couldnt be arsed finding translations of rigging in 3Ds Max to Blender) now right click on its icon in the content browser and click 'copy name to clipboard'
Go back into Notepad++ (or whatever) and find a variable called CharacterMesh, would look something like this ('CharacterMesh=BlahBlah') now replace BlahBlah with whats in your clipboard

Now Go into your Unreal Frontend and recompile, this is where i make a mistake in the video because i had a spelling mistake :P oops

If you have any errors look at your code and compare it to whats in the video up there ^ Were not done yeat so dont go complaining its not working, we are just making sure you havent made a mistake so far

Step Four(Mostly Testing Yayy)
Now Go back to uncodex and look for the text("Families.Add(class'UTFamilyInfo") should come up with a result in the file "UTCharInfo.uc", opn it in Notepadd++ and clear the read-only flag by right clicking its tab and selecting "clear read-only flag" Scroll down to "Families.Add(class'UTFamilyInfo" on line eighty-something copy the line and paste it underneath the original, change where it says Liandri to Soldier.
Back To uncodex again search for UTFamilyInfo (fullltext search again) look for a result in UTPlayerReplicationInfo.uc(or something like that) do a search for liandri and about line 576 you should see something farmilliar, change the class name from liandri to solder and your done! :D robots and people have different models!

Recompile and then all that testing i promised :P

Step Five: (not realy a step but some things you could try)
You could change the soundgroup of your character by creating a new one and linking to it in UTFamilyInfo_Soldier
You could change the mugshot from a boring old robot in UTPlayerReplicationInfo .uc
Profit :D

Post comment Comments
Jok3r098 Author
Jok3r098 Dec 14 2010, 4:19am buried:


i cant do it :'(

-6 votes   reply to comment
Jok3r098 Author
Jok3r098 Dec 14 2010, 4:20am says:

YOU IDIOT, TRY HARDER!!!!!!, go die in fire!

-2 votes   reply to comment
RKotern Dec 14 2010, 5:24am replied:

Wow, easy man...

+3 votes     reply to comment
Jok3r098 Author
Jok3r098 Dec 14 2010, 2:26pm buried:


i wanted a comment :P

-5 votes   reply to comment
vimpel_zocm Jan 19 2011, 8:53am says:

lol troll

+7 votes     reply to comment
mariannemeloche Feb 7 2013, 2:42pm says:

You tutorial did nothing except than make my UDK game crashes....
Great now I had to delete the change that make it crashe

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Windows, iPhone, iPad, X360, PS3
Epic Games
Send Message
Official Page
Release Date
Released Oct 31, 2009
Engine Watch
Track this engine
Report Abuse
Report article
Related Engines
Unreal Development Kit
Unreal Development Kit Commercial Released Oct 31, 2009
Related Groups
Epic Games
Epic Games Developer & Publisher