Jump to content
Sign in to follow this  
Xela

CfgVehicles - add new class have error Cannot create non-ai vehicle Grave_DZ

Recommended Posts

class NonStrategic;
class Grave : NonStrategic {
	scope = 2;
	model = "\ca\buildings\Misc\hrobecek.p3d";
	icon = "Ca\Structures\Data\Icons\i_grave_CA.paa";
	mapSize = 2;
	displayName = $STR_DN_GRAVE;
	accuracy = 1000;
	destrType = "DestructNo";
	vehicleClass = "Dead_bodies";
	armor = 20;
};

In my config I make this config

class NonStrategic;
class Grave_DZ : NonStrategic {
	scope = 2;
	model = "\ca\buildings\Misc\hrobecek.p3d";
	icon = "Ca\Structures\Data\Icons\i_grave_CA.paa";
	mapSize = 2;
	displayName = $STR_DN_GRAVE;
	accuracy = 1000;
	destrType = "DestructTree"; <-------- changed here only
	vehicleClass = "Dead_bodies";
	armor = 20;
};

And then I try to _cruse = "Grave_DZ" createVehicle _position;

I have error in rpt Cannot create non-ai vehicle Grave_DZ

Help please.

Share this post


Link to post
Share on other sites

Should have been asked in the config section :)

Try messing with your requiredAddons[], and add whichever addon your top config entry came from.

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  

×