Question

What is wrong with this section of code? I is in one of the ExileZ files ( post_init.sqf ). It is causing my server not to unlock.

if (UseTriggers) then
{
	{
		_useThisTrigger = _x select 0;
		_triggerPositions = _x select 1;
		if (_useThisTrigger) then {
		
			//Weight Zombie Group
			_currentTrigger = _x;
			_zgroup = _currentTrigger select 13;
			if (Debug) then {
				Diag_log Format["ExileZ 2.0: Compounding Zombie Group Weight, Selected Group Trigger Index : %1",_forEachIndex];
			};
			_count = 0;
			{
				_count = _count + (_x select 1);
				if (Debug) then {
					Diag_log Format["ExileZ 2.0: Zombie Type Index : %1	Weight : %2	Compound Weight Value : %3",_forEachIndex,_x select 1,_count];
				};
				(_zgroup select _forEachIndex) set [1,_count];
			}foreach (_zgroup);

			//Create triggers
			{nul = [_x,_CurrentTrigger] spawn CreateTriggers;
				sleep 0.01;
			}foreach (_triggerPositions);
		};
	}foreach Triggers;
};

 

It is causing the Following Error.

 9:37:03 "\\\ --- Starting ExileZ 2.0 --- ///"

 9:37:03 "ExileZ 2.0: Compounding Zombie Group Weight, Selected Group Trigger Index : 0"

 9:37:03 Error in expression < select _forEachIndex) set [1,_count];

}foreach (_zgroup);

 

 

{nul = [_x,_Current>

 9:37:03   Error position: <foreach (_zgroup);

 

 

{nul = [_x,_Current>

 9:37:03   Error foreach: Type code, expected Array

 9:37:03 File exilez\init\fn_init.sqf [exilez_fnc_init], line 1956

 9:37:04 Land_PlasticCase_01_medium_F: Lid_1_rot - unknown animation source lid_source

 9:37:04 Exile_Cosmetic_MG: MainTurret - unknown animation source mainturret

 9:37:04 Exile_Cosmetic_MG: MainGun - unknown animation source maingun

 9:37:04 Exile_Cosmetic_MG: Ammo_belt_rotation - unknown animation source reloadanim

 9:37:04 Exile_Cosmetic_MG: Bolt_reload_begin - unknown animation source reloadmagazine

 9:37:04 Exile_Cosmetic_MG: muzzleFlash - unknown animation source muzzle_source

 9:37:04 Exile_Cosmetic_MG: zaslehROT - unknown animation source muzzle_source_rot

 9:37:04 Exile_Cosmetic_MG: AddAutonomous_unhide - unknown animation source autonomous_unhide

 9:37:04 Exile_Cosmetic_MG: bullet001_reload_hide - unknown animation source revolving

 9:37:04 Land_PlasticCase_01_small_F: Lid_1_rot - unknown animation source lid_source

 9:37:04 Land_PlasticCase_01_large_F: Lid_1_rot - unknown animation source lid_source

 9:37:04 Exile_Cosmetic_UAV: RotorImpactHide - unknown animation source rotorhfullydestroyed

 9:37:04 Exile_Cosmetic_UAV: TailRotorImpactHide - unknown animation source tailrotorhfullydestroyed

 9:37:04 Exile_Cosmetic_UAV: propeller1_rotation - unknown animation source rotorh

 9:37:04 Exile_Cosmetic_UAV: propeller2_rotation - unknown animation source rotorv

 9:37:04 Exile_Cosmetic_UAV: propeller1_hide - unknown animation source rpm

 9:37:04 Exile_Cosmetic_UAV: MainTurret - unknown animation source mainturret

 9:37:04 Exile_Cosmetic_UAV: MainGun - unknown animation source maingun

 9:37:06 Land_Box_AmmoOld_F: Ammo_hide - unknown animation source ammo_source

 9:37:06 Land_Box_AmmoOld_F: AmmoOrd_hide - unknown animation source ammoord_source

 9:37:06 Land_Box_AmmoOld_F: Grenades_hide - unknown animation source grenades_source

 9:37:06 Land_Box_AmmoOld_F: Support_hide - unknown animation source support_source

 9:37:22 "TCAGame/BIS_fnc_log: [BIS_fnc_preload] ----- Scripts initialized at 30638 ms -----"

 

Share this post


Link to post
Share on other sites

2 answers to this question

Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.