Jump to content
Sign in to follow this  
curtac123

My car model will not show up ingame?

Recommended Posts

My car will not appear in game Eg it is not in the editor? Also textures do load in bulldozer

http://snag.gy/GUTKs.jpg (link to car in oxygen)

 class CfgModels
{
class default {};
class Vehicle: default {};
class Car: Vehicle {};
class Jeep: Car {};
class firstCar: Jeep {};
};


class CfgPatches
{
    class firstCar
    {
        units[] = {firstCar};
        weapons[] = {};
        requiredVersion = 1.0;
    };

};

class CfgVehicles
{

    class All {};
    class AllVehicles: All {};
    class Land: AllVehicles {};
    class LandVehicle: Land {};
    class Car: LandVehicle {};
    class Jeep: Car {};

    class firstcar: Jeep
    {                               
               displayName="My First Car";     // Displayname in editor
	model= P:\Custom Car\Mustang;	// our p3d model path

	side=3;			// Its on the civilian side
	crew="Civilian2";	// The default driver are civilians
	maxSpeed=300;		// Max speed
               transportSoldier=0;     // Right now just driver, no cargo                                                                                   
     };
}

Share this post


Link to post
Share on other sites

model= P:\Custom Car\Mustang;

Don't leave spaces. You don't need the drive letter. In the case you've presented, Custom_Car would need to be the name of the pbo. Your class CfgPatches > class firstCar usually is the same name as the pbo. Crew needs to be a class name of a unit.

cfgModels should be in the model.cfg file, and that's a whole different mountain to climb.


class CfgPatches {
    class Custom_Car {
        units[] = {"firstCar"};
        weapons[] = {};
        requiredVersion = 1.0;
    };

};

class CfgVehicles {

    class All;
    class AllVehicles: All {};
    class Land: AllVehicles {};
    class LandVehicle: Land {};
    class Car: LandVehicle {};
    class Jeep: Car {};

    class firstcar: Jeep {                               
	displayName="My First Car";     // Displayname in editor
	model= "Custom_Car\Mustang";	// our p3d model path
	side=3;			// Its on the civilian side
	crew="C_man_1";	// The default driver are civilians
	maxSpeed=300;		// Max speed
	transportSoldier=0;     // Right now just driver, no cargo                                                                                   
     };
};

Edited by BadHabitz

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×