PDA

View Full Version : cpp prob



Maslow
Dec 2 2002, 16:08
hmmm guys ....... whats wrong with this config part:

class CfgNonAIVehicles
{
class ProxyFlag {};
class Proxyflag_umhang: ProxyFlag {};
{
autocenter=0;
scope=2;
reversed=0;
model="\swissarmysoldier\flag_umhang:p3d";
simulation="flag";
};
};



it says  blablablamyaddonfolder\config.cpp/class cfgNonaivehicles:  { encountered instead of  =

or something in that way...... i think the last part is the important one :-)

Powerslide
Dec 2 2002, 16:23
Try this


class CfgNonAIVehicles
        {
        class ProxyFlag {};
        class Proxyflag_umhang: ProxyFlag
              {
              autocenter=0;
              scope=2;
              reversed=0;
              model="\swissarmysoldier\flag_umhang:p3d";
              simulation="flag";
              };
       };
};

Maslow
Dec 2 2002, 16:38
thanks ....... it doesn't return me an error now..... but the proxy itself still won't work....... any ideas?? i know its a bit a special thing with that flag stuff...... but should work actually, shouldn't it?

Suma
Dec 3 2002, 06:52
This seems quite strange:

model="\swissarmysoldier\flag_umhang:p3d";

I suppose it should be

model="\swissarmysoldier\flag_umhang.p3d";

Maslow
Dec 3 2002, 10:58
u yes this typing mistake i found already..... ...... ofp doesn't show any errors now but the proxy is just not showing up.......
is it actually even possibel to add a custom flag on units?? (soldier)

cy