tupolov / cfp

Community Factions Project
Other
21 stars 10 forks source link

Error Undefined variable in expression: _helmet #97

Closed adampiskorski closed 4 years ago

adampiskorski commented 4 years ago

When I place down an AI-controlled man of B_Pilot_F, (or 2035 NATO > Men > Pilot) and any other man to play as (including the same type), I then get the following script error in my log and on screen (since I have Show Script Errors enabled), when I start the game and every couple of seconds indefinetely:

Error in expression <== "NVGoggles") exitWith {
_nvgHelmet = _helmet;
};
} forEach _helmetSubItems;
}>
Error position: <_helmet;
};
} forEach _helmetSubItems;
}>
Error Undefined variable in expression: _helmet
File x\cfp\addons\main\XEH_postInit.sqf..., line 25

Steps to reproduce:

  1. Create a fresh mission in Virtual Reality terrain
  2. Place down any man to be a player
  3. Place down 2035 NATO > Men > Pilot
  4. Preview and notice the error after a few seconds when the simulation starts.

Environment:

AUTigerGrad commented 4 years ago

Fixed in Dev