I have been working on, and having problems with importing the Lingor units into Insurgency. I am trying to create a version of insurgency more suited to Lingor so I am aiming for DEA vs the Drug lords type scenario.
The first thing I want to know, now that I am strating again from scratch is how to use the Lingor civilian units. Am I right in thinking that I can add another instance of this code for Lingor:
Code:
case "lingor": {
BIS_alice_mainscope setvariable ["trafficDistance",1000];
BIS_alice_mainscope setvariable ["spawnDistance",700];
BIS_alice_mainscope setVariable ["civilianCount","round (5 * (sqrt %1))"];
[] spawn compile preprocessFileLineNumbers "mip\ALICE2_houseEffects.sqf";
BIS_alice_mainscope setVariable ["townsFaction",["CIV_LGR","ibr_arl_faction"], true];
};
My current error I am facing I think is to do with me trying to change the enemy classes to that of the Lingor Island Drug Lord Army. When loading the mission I get this error:
"Missing [" at line 152 of my common\functions.sqf
I have an error in this code here:
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;
Although I have resigned my self to the fact that I should start the edit from scratch now I was wondering if there was maybe something that I may have overlooked when defining the units. If, even with my basic ability, I can read the code right I would guess that it is struggling to call out what weapon to give to the East factions but I cant see any issues in my definitions.