Advertisement
BobTheHunted

Untitled

Sep 15th, 2017
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.64 KB | None | 0 0
  1. // Array with group types
  2. WEST_Grp_List = [
  3.     [configfile >> "CfgGroups" >> "West" >> "BLU_F" >> "Infantry" >> "BUS_InfTeam", 625]
  4. ];
  5.  
  6. //Used this to add to the map for calling the function
  7. {
  8.     private _grpType = (_x select 0);
  9.     private _grpCost = (_x select 1);
  10.     private _grpCode = format ["[%1,%2,%3] call BTH_fnc_RecruitGroup", _grpType, _grpCost, str _pSide];
  11.     private _grpDisp = getText (_grpType >> "name");
  12.     private _grpStr = format ["Recruit " + "<execute expression='%3'>%1</execute>, " + "Cost: %2", _grpDisp,_grpCost,_grpCode];
  13.     private _grpAdd = _pLocal createDiaryRecord ["Buy Assets", ["Groups", _grpStr]];
  14. } forEach _p_Grp_List;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement