Jump to content
  • 0

natoed

Question

Spoiler

{
    {
    [_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

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I was missing a few classes, works on lights in the array, Still missing two

red lights on top the solar tower, ATC and large light poles at main airfield

white lights on the roof top of Kavala hospital.

If anyone know thier class names drop us a line

cheers

natoed

Spoiler

{
    {
    [_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_L_off_F",
    "Land_PowerPoleWooden_small_F",
    "Land_fs_roof_F",                    // Fuel station roof lights
    "Land_fs_sign_F",                    // Fuel station sign light
    "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",
    "Land_Hospital_side2_F",
    "Land_spp_Tower_F",
    "Land_LampAirport_off_F",
    "Land_LampDecor_off_F",
    "Land_LampHalogen_off_F",
    "Land_LampHarbour_off_F",
    "Land_LampShabby_off_F",
    "Land_LampSolar_off_F",
    "Land_LampStreet_off_F",
    "Land_LampStreet_small_off_F"];

 

 

 

Edited by natoed
correcting myself again
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...