PDA

View Full Version : Adding objects



MagnumAI
11-11-2009, 11:45 PM
Ok,

I have been playing a little with the UDK and have a vehicle imported and created a Physics Asset, Skeletmesh.. I wrote a simple script that builds the vehicle and compiles.

Now, what I haven't found yet, is how do I actually add that vehicle to the level? right now I can't get the mesh with physics actually in the game with collisions.

It should be easy, but not having any luck right now.
:mad:

Solid Snake
11-12-2009, 01:26 AM
In the class definition add 'placeable' so something like;



class MyCar extends Vehicle
placeable;


This tells UED that the class can be placed in the editor. You then go to the Actor Class browser and select it, and then it will be in the right click menu. You can also add an Actor Factory Class to make it appear in the context menu all the time.

MagnumAI
11-12-2009, 01:48 AM
SWEET!

Thanks.. I was trying to add from the content browser. But now that makes sense.

Just an FYI... I did not have to place the placeable command there. It as in the actor Classes, just didn't know to select and right click....

Comes in with collisions and everything!