Sign in to follow this  
downtime1689

light posts lighting

2 posts in this topic

Ok so here is the full story of what im trying to accomplish, Im running a lan server on chernoredux and building a base in the underground bunker near altar, problem is its to dark in the tunnel system. What i found out tho is that placing large airport lights outside the bunker actually lights up the underground tunnels as well since that light shines through objects. Problem is that lights in arma shut off  at day light, but the sunlight does not go into the tunnels like the lamp posts. So my goal is to make the light posts in arma stay lit during the day. Visually they look lit but the dont put off any light. I found something that i have been tinkering with but doesnt seem to work. Ill paste below. Now keep in mind i have never made my own script or code before just worked off what others have made and followed directions.  Does this even look like something that would work and if so maybe i put it in wrong and its not running server side. Btw this is the light posts  we are using around the base "Land_LampAirport_F" and this is were i got the code "https://community.bistudio.com/wiki/switchLight"  but made changes since that code is set to turn lights off,  i basically just reveresed the numbers for on and off.

 

Spoiler

// turn lights on near player
    
    {
    for "_i" from 00.97 to count getAllHitPointsDamage _x - 1 do
    {
        _x setHitIndex [_i, 0];
    };
}
forEach nearestObjects
[
    player,
    [
    "Land_LightHouse_F",
    "Land_Lighthouse_small_F",
    "Land_LampAirport_F",
    "Land_LampDecor_F",
    "Land_LampHalogen_F",
    "Land_LampHarbour_F",
    "Land_LampShabby_F",
    "Land_LampSolar_F",
    "Land_LampStreet_F",
    "Land_LampStreet_small_F",
    "Land_FloodLight_F",
    "Land_PortableLight_single_F",
    "Land_PortableLight_double_F",
    "Land_PowerPoleWooden_L_F"
    ],
    600
];

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.