Jump to content
Sign in to follow this  
Milkman

Unidentified class

Recommended Posts

I am trying to make a unit with mines, like BIS's engineers. But I cannot get the proper class base name. The unofficial command reference defines it as: SoldierWMiner but that returns the error Unidentified class. SoldierWMine does not work either.

My question is: What is the proper class name for engineers?

Share this post


Link to post
Share on other sites

That should work, because that's what's in the(atleast my) config.bin. Maybe you forgot a class when you made the stuff that leads to that class(not sure what that's called).

Share this post


Link to post
Share on other sites

I think I might have, for some reason, nothing at all seems to wrok for it. This is what I have right now, I can't seem to figure out whats wrong....

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

Class CfgPatches

{

class SuchImine

{

units[] = {SuchImine};

weapons[] = {};

requiredVersion = 1.90;

};

some other stuff then:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class SuchImine : SoldierWMiner

{

displayName="USMC (Engineer)";

vehicleClass = "USMC";

model="\SUCHwii\SUCHurifle.p3d";

picture="\SUCHwii\logomain.paa";

icon="\SUCHwii\mainlogo.paa";

hiddenSelections[]={""};

nightVision=1;

wounds[]={

"\SUCHwii\vestfront.paa","\SUCHwii\damvest.paa",

"\SUCHwii\woodland.paa","\SUCHwii\damwood.paa",

"\SUCHwii\legstuff.paa","\SUCHwii\damleg.paa",

"\SUCHwii\helmat2.paa","\SUCHwii\damhelmet.paa",

"\SUCHwii\woodarm.paa","\SUCHwii\damarm.paa",

};

weapons[]={"C8XM16A2","Throw","Put","Mine"};

magazines[]={"C8XM16mag","C8XM16mag","C8XM16mag","C8XM16mag","Mine","Mine","Mine",};

};

It still spazes out, I cant figure out why it still says Unidentified base class SoldierWMiner!

Share this post


Link to post
Share on other sites

What are the lines above the second part, that goes through the different classes(like Soldier), before it gets to SoldierWMiner?

Share this post


Link to post
Share on other sites
What are the lines above the second part, that goes through the different classes(like Soldier), before it gets to SoldierWMiner?

Yeah, it goes through different type of soldiers (Officers, Machine Gunner, etc) untill it gets to that line.

Share this post


Link to post
Share on other sites

Check the line

class SoldierWMiner: ... {};

if you dont have that line or you commented it out, it will give you that error.

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  

×