News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > UnrealEngine2 Runtime > Programming

Reply
 
Thread Tools Display Modes
Old 28th Nov 2008, 03:26 PM   #1
CiberX15
Registered User
 
CiberX15's Avatar
 
Join Date: Oct. 5th, 2008
Posts: 26
Help with getting using a mesh

Ok I am working with trying to create a new weapon. I have created a model and animation and I have loaded them into unrealruntime 2 (they show up and everything). I made a weapon class from the WeaponPickup class and set its display to DT_Mesh and in the animated mesh dialog I inserted my animated mesh. This worked fine and I could even place it and it would show up in the editor. However when load my map it does not load the object pack that my mesh is in, and when I do load the pack manually and play the map the gun still does not show up.

I assume that to get the pack to show up I have to do some scripting like: when load class my_class load my_object_pack, but I don’t know how to code that. I did something similar for textures though.

Then even if it starts loading my object pack it I have the problem that it doesn’t show up in game! What am I doing wrong? Thanks to whoever has enough patience to deal with me.
CiberX15 is offline   Reply With Quote
Old 29th Nov 2008, 12:58 PM   #2
CiberX15
Registered User
 
CiberX15's Avatar
 
Join Date: Oct. 5th, 2008
Posts: 26
Ok I figured this one out on my own, just in case someone else finds this I’ll explain what I did.

I was right when I though I needed a load class = load my pack, All I needed to do was place Mesh=SkeletalMesh'My_Pack.My_Object' in the default properties the whole thing looks like this:

//==========================================================
// My_Object.
//==========================================================
class My_Object extends WeaponPickup
Placeable;

defaultproperties
{
Mesh=SkeletalMesh'My_Pack.My_Object'
}

Last edited by CiberX15; 29th Nov 2008 at 12:59 PM.
CiberX15 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer