Jump to content

iOGC_Aenigma

Member
  • Content Count

    127
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by iOGC_Aenigma

  1. iOGC_Aenigma

    Lingor Units Insurgency Edit

    Thanks for the reply Twirly. It seems after trying you suggested fix that the highlighted error may actually be needed here is the rest of the corresponding section of code: if (_type == "count") then { _result = 0; } else { _result = []; }; { if (typeOf _x in eastInfClasses && ( (alive _x && primaryWeapon _x != "") || !_alive ) ) then { if (_type == "count") then { _result = _result + 1; } else { _result set [count _result, _x]; }; }; } forEach _arr2; My guess is that I have not properly defined the units or factions, really not much a guess as it is all I have attempted to change. I will keep at it.
  2. I am currently trying to edit the Insurgency mission on Lingor to use the Lingor units add on so I can simulate a police vs drug cartel scenario. I have systematically moved through the files within the mission and changed classes and factions where I have found possible. I have changed the cache item to the Lingor Units cocaine rather than an ammo cache and the insurgents are now the Drug Lord and Rebel Army combined. When loading the mission I get this error: "Missing [" at line 152 of my common\functions.sqf Below are lines 150 to 154 of that file. if (_type == "count") then { _result = 0; } else { _result = []; }; { if (typeOf _x in eastInfClasses && ( (alive _x && primaryWeapon _x != "") || !_alive ) ) then { if (_type == "count") then { _result = _result + 1; } else { _result set [count _result, _x]; }; }; I am by no means a skilled editor with Arma yet but have had some success with missions before this. This is the first time I am faced with a script error and wondered if it is something simple that I may have done wrong. I do hope it is stupid mistake that I can learn from. Any help would be much appreciated but I shall continue to trawl through my scripts to see if I can rectify the problem.
×