Looking into adding an store where u can buy ai into A3Wasteland

So i Spent some time looking intoo and editing some code to add an store where u can buy ai that will join your group (aka follow you arownd).
I got so far as to copy the a store (vehicle) and rewrit some of the code.
So i got as far as getting a store in game called Ai store that i can access.
But all the vehicle stuff is still there looking into editing that now.(would like to know where and what i need to edit)
But then i got a lot of questions and started googleing and that lead me here, So here goes with the questions any help is welcome.

1.Is it even possible to add a working store where u can buy ai for your side.

2. How would one go about make it so u can only buy ai for your side (add diffrent stores?  add something in the code?)

3.How i would go about adding the ai to the storeconfig (price and stuff)
 (wat i have done so far in storeConfig.sqf)
Code: [Select]
aiArray = compileFinal str
[

["BLUFOR Rifleman", "B_Soldier_F", 10],
["BLUFOR Rifleman AT", "B_soldier_LAT_F", 10]
["OPFOR Rifleman", "O_G_Soldier_F", 10],
["OPFOR Rifleman AT", "O_G_Soldier_LAT_F", 10]
["Independent Rifleman", "I_G_Soldier_F", 10],
["Independent Rifleman AT", "I_G_Soldier_LAT_F", 10]

];

4.If this is possible i might need a rundown on wat to code and where are there any good resorse i can read (skimmed through the forums, not found anything yet will keep looking )

Again any help is welcome and if i get this working and anyone wants to try it i will post it somewhere, but we will see if i even get that far:D

Some stuff i have done.

Started by copying the folder vehicleStore then renamed some off the file i have edited code in to Ai

Added to storeOwners.sqf
Code: [Select]

["AiStore1", -1, [], []],
["AiStore2", -1, [], []],
["AiStore3", -1, [], []],
["AiStore4", -1, [], []],
["AiStore5", -1, [], []]

// Outfits for store owners
["AiStore1", [["weapon", ""], ["uniform", "U_Competitor"]]],
["AiStore2", [["weapon", ""], ["uniform", "U_Competitor"]]],
["AiStore3", [["weapon", ""], ["uniform", "U_Competitor"]]],
["AiStore4", [["weapon", ""], ["uniform", "U_Competitor"]]],
["AiStore5", [["weapon", ""], ["uniform", "U_Competitor"]]]


Edited loadAiStore.sqf

Code: [Select]
if !(playerSide in [OPFOR]) then
{
_excludedItems pushBack "BLUFOR Rifleman";
_excludedItems pushBack "BLUFOR Rifleman AT";
_excludedItems pushBack "Independent Rifleman";
_excludedItems pushBack "Independent Rifleman AT";
};

if !(playerSide in [BLUFOR]) then
{
_excludedItems pushBack "OPFOR Rifleman";
_excludedItems pushBack "OPFOR Rifleman AT";
_excludedItems pushBack "Independent Rifleman";
_excludedItems pushBack "Independent Rifleman AT";
};

if !(playerSide in [Independent]) then
{
_excludedItems pushBack "OPFOR Rifleman";
_excludedItems pushBack "OPFOR Rifleman AT";
_excludedItems pushBack "BLUFOR Rifleman";
_excludedItems pushBack "BLUFOR Rifleman AT";

I see now that this should maybe be in Editing & Coding....