Jump to content
Sign in to follow this  
moraespqd

How to Create an Blackout

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×