Furriatomico 0 Posted October 4, 2007 hello guys, this is my first post, SALUDAIONS!! I created 2 bunkers i take a used cpp, and i replaced it ,, but i wnt to inlclude some bumker more,, & i dnt know how i do that.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">RKSL US CAMO Nets FINAL v1.0R converted to arma by BK1276// #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class Bunker4 { units[] = {"Bunker4Entradas"}; weapons[] = {}; requiredVersion = 1.00; }; }; class CfgVehicleClasses { class Bunker4 { displayName = "Objetos CTF"; }; }; class CfgVehicles { class All {}; class Static : All {}; class Building : Static {}; class Strategic : Building {}; class CAMP: Strategic {}; class Bunker4: Camp { model="\Objetos_CTF\Data\Bunker4.p3d"; scope=2; attendant=1; mapSize=20; vehicleClass="Bunker4"; displayName="Bunker4BluFor"; icon = "\ca\data\data\Unknown_object.paa"; Destrtype= Destructno; }; class Bunker4_2: Camp { model="\Objetos_CTF\Data\Bunker4Op.p3d"; scope=2; attendant=1; mapSize=20; vehicleClass="Bunker4"; displayName="Bunker4OpFor"; icon = "\ca\data\data\Unknown_object.paa"; Destrtype= Destructno; }; }; }; here´s my cpp, but has a error, i cant compile. Share this post Link to post Share on other sites
armored_sheep 56 Posted October 5, 2007 class CfgVehicles { class CAMP; class Bunker4: Camp ... should be enough also dont need the definies on the top because you dont use them (scope=2 Share this post Link to post Share on other sites
Furriatomico 0 Posted October 5, 2007 thx, but it didnt work. i have this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//RKSL US CAMO Nets FINAL v1.0R converted to arma by BK1276// #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 #define private 0 #define protected 1 #define public 2 class CfgPatches { class Bunker4 { units[] = {"Bunker4Entradas"}; weapons[] = {}; requiredVersion = 1.00; }; }; class CfgVehicleClasses { class Bunker4 { displayName = "Objetos CTF"; }; }; class CfgVehicles { class All {}; class Static : All {}; class Building : Static {}; class Strategic : Building {}; class CAMP: Strategic {}; /* ---------------BunkerBluFor------------------- */ class BunkerBlufor: Camp { model="\Objetos_CTF\Data\Bunker4.p3d"; scope=2; attendant=1; mapSize=20; vehicleClass="Bunker4"; displayName="Bunker Blufor"; icon = "\ca\data\data\Unknown_object.paa"; Destrtype= Destructno; }; }; this work perfectly, and i want to add another bunker called bunker Opfor with different P3d, in the same class CfgVehicleClasses.. how? Share this post Link to post Share on other sites
Furriatomico 0 Posted October 10, 2007 i answer myself,,i fixed it, in class CfgPatches add in units[] = {" the class names i include in <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class BunkerBlufor { units[] = {"BunkerBlufor","BunkerOpfor"}; weapons[] = {}; requiredVersion = 1.00; }; <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> /* ---------------Bunker BluFor------------------- */ class BunkerBlufor: Camp { model="\Objetos_CTF\Data\Bunker4.p3d"; scope=2; attendant=1; mapSize=20; side=1 vehicleClass="Bunker4"; displayName="Bunker Blufor"; icon = "\ca\data\data\Unknown_object.paa"; Destrtype= Destructno; }; /* ---------------Bunker Opfor------------------- */ class BunkerOpfor: Camp { model="\Objetos_CTF\Data\Bunker4OP.p3d"; scope=2; attendant=1; mapSize=20; side=0 vehicleClass="Bunker4"; displayName="Bunker Opfor"; icon = "\ca\data\data\Unknown_object.paa"; Destrtype= Destructno; }; }; it works correctly Share this post Link to post Share on other sites