Jump to content
Sign in to follow this  
Piloto_Spyke

class compartmentsLights [config base]

Recommended Posts

Hi, I will post this because i havent found so much info related to class compartmentsLights.
I have been helped by reyhard on the Arma 3 Discord.


- Requieres the "points" to be defined in the model.p3d Memory LOD.
- Requires compartments defined for all:

driverCompartments = Compartment1;
cargoCompartments[] = {Compartment1};
// and gunnerCompartments = "Compartment1"; in his respective turret class

And this in myVehicle class:

class compartmentsLights
{
  class Comp1  // first class is asociated with Compartment1, second with Compartment2,....
  {
    class Light1
    {
      color[] = { 100,100,100 };
      ambient[] = { 100,100,100 };
      intensity = 0.1;
      size = 0;
      useFlare = 0;
      flareSize = 0;
      flareMaxDistance = 0;
      dayLight = 0;
      blinking = 0;
      class Attenuation
      {
        start = 0;
        constant = 0;
        linear = 1;
        quadratic = 70;
        hardLimitStart = 0.15;
        hardLimitEnd = 1.0;
      };
      point = "light_interior1";
    };
    class Light2 : Light1 
    {
      point = "light_interior4";
    };

    class Light3 : Light1 
    {
      color[] = { 300,0,0 };
      ambient[] = { 300,0,0 };
      point = "light_interior2";
      class Attenuation: Attenuation
      {
        start = 0;
        constant = 0;
        linear = 1;
        quadratic = 70;
        hardLimitStart = 0.5;
        hardLimitEnd = 1.5;
      };					
    };
    class Light4 : Light3 
    {					
      point = "light_interior3";
    };
  };
};

 

  • Thanks 1

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  

×