Jump to content
Sign in to follow this  
3inar

Construction Interface

Recommended Posts

ok so I basicly am trying to learn how to gett this to work...

have looked at this>>(http://community.bistudio.com/wiki/Construction_Interface) page many times but I just dont gett what I am suposed to do...

I gues I am suposed to putt the lines and sutch in the buildings init as far as I have understodd it, and put the name of the kind of units I whant to be able to be bought in that building,? Be gentel I am verry begginer with this :)

Also I got a question adding to my quesstion, Is there any way to make the AI to build upp there own camp from scratch?(that mening starting with 0 buildings and then build there way upp) then go on a hunt for enemies Automaticly?

or am I just dreaming here with my extra question?

Best wishes ///3inar :)

Share this post


Link to post
Share on other sites
:D nothing is imposible in arma 2, at least not from what i encountered, listen take this example, research it and you will figure out what and how to do it, basically you need a warfare a simple warfare to make ai build bases.

here is the example http://forums.bistudio.com/showthread.php?t=91022

good luck

ok got another question, how wold I change how mutch the units cost?

think I figured out how to change buildings cost but dont know about units, do you have to sync the units to there respective building in any way and in that case how?

Thanks :)

Edit: seemes like i dident know what I was doing :/, still cant make custom prices for different buildings and units :(

Edited by 3inar

Share this post


Link to post
Share on other sites

Here's an example script for adding custom buildings to the Construction Interface. Replace the third element in the array (i.e. 100, or 10) with the price you want that building to be. Then you just call this script from the init field of the COIN module.

(i.e. _handle = [this] execVM "scripts\setupCOIN.sqf"; )

_module = _this select 0;
//Set the categories
//These will be used by each building as well
_module setvariable ["BIS_COIN_categories",["Buildings","Defense","Barriers","Sandbag Barriers","Fortifications","Ammunition Crates","Other"]];

//Populate BIS_COIN_items array
_module setvariable ["BIS_COIN_items",[

//Format each entry like so:
//[Name of Building, Name of Category, Price of Building],

["USMC_WarfareBVehicleServicePoint","Buildings",100],
//["USMC_WarfareBAircraftFactory","Buildings",100],
//["USMC_WarfareBArtilleryRadar","Buildings",100],
["USMC_WarfareBAntiAirRadar","Buildings",100],
["USMC_WarfareBBarracks","Buildings",100],
["MASH","Buildings",100],
//["USMC_WarfareBHeavyFactory","Buildings",100],
//["LAV25_HQ_unfolded","Buildings",100],
//["USMC_WarfareBLightFactory","Buildings",100],
["USMC_WarfareBUAVterminal","Buildings",100],
["WarfareBAirport","Buildings",100],
["Barrack2","Buildings",100],
["Land_Hangar_2","Buildings",100],
["Land_Antenna","Buildings",100],
["WarfareBCamp","Buildings",100],

["USMC_WarfareBMGNest_M240","Defense",100],
["Stinger_Pod","Defense",100],
["M119","Defense",100],
["M252","Defense",100],
["MK19_TriPod","Defense",100],
["TOW_TriPod","Defense",100],
["M2StaticMG","Defense",100],
["M2HD_mini_TriPod","Defense",100],
["SearchLight_CDF","Defense",100],

["Base_WarfareBBarrier10xTall","Barriers",100],
["Base_WarfareBBarrier10x","Barriers",100],
["Base_WarfareBBarrier5x","Barriers",100],

["Land_HBarrier5","Barriers",100],
["Land_Hbarrier_large","Barriers",100],
["Land_HBarrier3","Barriers",100],
["Land_HBarrier1","Barriers",100],
["Hedgehog","Barriers",100],
["Fort_RazorWire","Barriers",100],
["Land_BarGate2","Barriers",100],
["Land_ConcreteBlock","Barriers",100],
["Land_CncBlock","Barriers",100],



["Land_BagFenceLong","Sandbag Barriers",100],
["Land_BagFenceShort","Sandbag Barriers",100],
["Land_BagFenceCorner","Sandbag Barriers",100],
["Land_BagFenceRound","Sandbag Barriers",100],
["Land_BagFenceEnd","Sandbag Barriers",100],
["Land_fort_bagfence_long","Sandbag Barriers",100],
["Land_fort_bagfence_corner","Sandbag Barriers",100],
["Land_fort_bagfence_round","Sandbag Barriers",100],

["Land_fortified_nest_big","Fortifications",100],
["Land_fortified_nest_small","Fortifications",100],
["Land_Fort_Watchtower","Fortifications",100],
["Land_fort_rampart","Fortifications",100],
["Land_fort_artillery_nest","Fortifications",100],

["USBasicAmmunitionBox","Ammunition Crates",10],
["USLaunchersBox","Ammunition Crates",10],
["USOrdnanceBox","Ammunition Crates",10],
["USBasicWeaponsBox","Ammunition Crates",10],
["USSpecialWeaponsBox","Ammunition Crates",10],
["USVehicleBox","Ammunition Crates",10],

["FlagCarrierUSA","Other",10],
["HeliHRescue","Other",10],
["HeliHCivil","Other",10],
["HeliH","Other",10],
["Land_CamoNet_NATO","Other",10],
["Land_CamoNetVar_NATO","Other",10],
["Land_CamoNetB_NATO","Other",10],
["Camp","Other",10],
["Land_Toilet","Other",10],
["Fence_corrugated_plate","Other",10]

]]; //End BIS_COIN_items Array

Hopefully the comments in the script are enough for you to go by?

Share this post


Link to post
Share on other sites

Hmm.. I am doing something wrong I think, when I try to start my mission it says script not found :/ and sometimes when I try the misson wont even start :/ just sitts at the loading screen :(

I make a script with the codes you gave me (sqf script)

dont know what im doing wrong :/

Here's an example script for adding custom buildings to the Construction Interface. Replace the third element in the array (i.e. 100, or 10) with the price you want that building to be. Then you just call this script from the init field of the COIN module.

(i.e. _handle = [this] execVM "scripts\setupCOIN.sqf"; )

_module = _this select 0;
//Set the categories
//These will be used by each building as well
_module setvariable ["BIS_COIN_categories",["Buildings","Defense","Barriers","Sandbag Barriers","Fortifications","Ammunition Crates","Other"]];

//Populate BIS_COIN_items array
_module setvariable ["BIS_COIN_items",[

//Format each entry like so:
//[Name of Building, Name of Category, Price of Building],

["USMC_WarfareBVehicleServicePoint","Buildings",100],
//["USMC_WarfareBAircraftFactory","Buildings",100],
//["USMC_WarfareBArtilleryRadar","Buildings",100],
["USMC_WarfareBAntiAirRadar","Buildings",100],
["USMC_WarfareBBarracks","Buildings",100],
["MASH","Buildings",100],
//["USMC_WarfareBHeavyFactory","Buildings",100],
//["LAV25_HQ_unfolded","Buildings",100],
//["USMC_WarfareBLightFactory","Buildings",100],
["USMC_WarfareBUAVterminal","Buildings",100],
["WarfareBAirport","Buildings",100],
["Barrack2","Buildings",100],
["Land_Hangar_2","Buildings",100],
["Land_Antenna","Buildings",100],
["WarfareBCamp","Buildings",100],

["USMC_WarfareBMGNest_M240","Defense",100],
["Stinger_Pod","Defense",100],
["M119","Defense",100],
["M252","Defense",100],
["MK19_TriPod","Defense",100],
["TOW_TriPod","Defense",100],
["M2StaticMG","Defense",100],
["M2HD_mini_TriPod","Defense",100],
["SearchLight_CDF","Defense",100],

["Base_WarfareBBarrier10xTall","Barriers",100],
["Base_WarfareBBarrier10x","Barriers",100],
["Base_WarfareBBarrier5x","Barriers",100],

["Land_HBarrier5","Barriers",100],
["Land_Hbarrier_large","Barriers",100],
["Land_HBarrier3","Barriers",100],
["Land_HBarrier1","Barriers",100],
["Hedgehog","Barriers",100],
["Fort_RazorWire","Barriers",100],
["Land_BarGate2","Barriers",100],
["Land_ConcreteBlock","Barriers",100],
["Land_CncBlock","Barriers",100],



["Land_BagFenceLong","Sandbag Barriers",100],
["Land_BagFenceShort","Sandbag Barriers",100],
["Land_BagFenceCorner","Sandbag Barriers",100],
["Land_BagFenceRound","Sandbag Barriers",100],
["Land_BagFenceEnd","Sandbag Barriers",100],
["Land_fort_bagfence_long","Sandbag Barriers",100],
["Land_fort_bagfence_corner","Sandbag Barriers",100],
["Land_fort_bagfence_round","Sandbag Barriers",100],

["Land_fortified_nest_big","Fortifications",100],
["Land_fortified_nest_small","Fortifications",100],
["Land_Fort_Watchtower","Fortifications",100],
["Land_fort_rampart","Fortifications",100],
["Land_fort_artillery_nest","Fortifications",100],

["USBasicAmmunitionBox","Ammunition Crates",10],
["USLaunchersBox","Ammunition Crates",10],
["USOrdnanceBox","Ammunition Crates",10],
["USBasicWeaponsBox","Ammunition Crates",10],
["USSpecialWeaponsBox","Ammunition Crates",10],
["USVehicleBox","Ammunition Crates",10],

["FlagCarrierUSA","Other",10],
["HeliHRescue","Other",10],
["HeliHCivil","Other",10],
["HeliH","Other",10],
["Land_CamoNet_NATO","Other",10],
["Land_CamoNetVar_NATO","Other",10],
["Land_CamoNetB_NATO","Other",10],
["Camp","Other",10],
["Land_Toilet","Other",10],
["Fence_corrugated_plate","Other",10]

]]; //End BIS_COIN_items Array

Hopefully the comments in the script are enough for you to go by?

Share this post


Link to post
Share on other sites
Hmm.. I am doing something wrong I think, when I try to start my mission it says script not found :/ and sometimes when I try the misson wont even start :/ just sitts at the loading screen :(

I make a script with the codes you gave me (sqf script)

dont know what im doing wrong :/

That means the path is probably wrong. Did you put the script I posed into a file called setupCOIN.sqf in the scripts subfolder of the map?

Share this post


Link to post
Share on other sites
That means the path is probably wrong. Did you put the script I posed into a file called setupCOIN.sqf in the scripts subfolder of the map?

I did, think Ive had this problem with other scripts to just cant remember what I did then :/

I put them in: Mina dokument(my documents)\ArmA 2\missions\Constructor%20interface.utes\Scripts

Edited by 3inar

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  

×