moraespqd 1 Posted March 12, 2013 goodnight friends ... I'm trying to create a blackout in Agia Marina after the destruction of a transformer. I used a script to the Arma 2. script: // lightsoff.sqf _pos = _this select 0; _range = _this select 1; // Add more types if needed _types = ["Land_lampa_vysoka", "Land_lampa_ind", "Land_lampa_ind_b", "Land_lampa_sidl", "Land_lampa_ind_zebr"]; for [{_i=0},{_i < (count _types)},{_i=_i+1}] do { _lamps = _pos nearObjects [_types select _i, _range]; Sleep 1; {_x switchLight "OFF"} forEach _lamps; }; and changed the types of _types = ["LampDecor_F", "LampHalogen_F", "LampHarbour_F", "LampShabby_F"]; Not sure if this is the correct classname but I'm trying to find a way to do this. if someone has an idea how to help me. sorry my english. I'm using Google translator Share this post Link to post Share on other sites
loyalguard 15 Posted March 12, 2013 Just try "StreetLamp" instead of individual class names. I will eventually port my ArmA Electrical Grids (Script Pack and Addon) to A3 which will make blackouts like this automatic, but it will probably not be for a few more months. Share this post Link to post Share on other sites
moraespqd 1 Posted March 12, 2013 thanks a lot, I'll try it if not I'll try to work out a set damage in lamps or poles. I'll post any results back. Once again, thanks Share this post Link to post Share on other sites