{
{
[_x, FALSE] call BIS_fnc_switchLamp; //1.64 code as per https://community.bistudio.com/wiki/BIS_fnc_switchLamp
}foreach(getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition") nearObjects [_x,25000]);
}foreach ["Land_LightHouse_F",
"Land_Lighthouse_small_F",
"Land_LampAirport_F",
"Land_LampDecor_F",
"Land_LampHalogen_F",
"Land_LampHarbour_F",
"Land_LampShabby_F",
"Land_LampStreet_F",
"Land_LampStreet_small_F",
"Land_FloodLight_F",
"Land_LampStadium_F",
//"Land_LampSolar_F", // excluded as its solar powered
"Land_PortableLight_single_F",
//"Land_PortableLight_double_F", // lights in spawnbox + traders
"Lamps_Base_F",
"PowerLines_base_F",
"PowerLines_Small_base_F",
"Land_PowerPoleWooden_F",
"Land_PowerPoleWooden_L_F",
"Land_PowerPoleWooden_small_F",
"Land_fs_roof_F",
"Land_fs_sign_F",
"Land_NavigLight",
"Land_NavigLight_3_F",
"Land_Flush_Light_green_F",
"Land_Flush_Light_red_F",
"Land_Flush_Light_yellow_F",
"Land_runway_edgelight",
"Land_runway_edgelight_blue_F",
"Land_Flush_Light_green_F",
"Land_Flush_Light_red_F",
"Land_Flush_Light_yellow_F",
"Land_Runway_PAPI",
"Land_Runway_PAPI_2",
"Land_Runway_PAPI_3",
"Land_Runway_PAPI_4"];
Running the above from my mission file via a call in my init but it doesn't turn of the lights in my array.
Anybody else got another way of switching off the lights or did I make a school boy error somewhere....
cheers
natoed

