Results 1 to 2 of 2

Thread: Script Light brightness Change

  1. #1

    Script Light brightness Change

    In the class of the searchlight, the color of the light is set as follows.

    Code:
    	  	class Reflectors
    		{
    			class main_reflector
    			{
    				color[] = {1, 1, 1, 1.0};
    				ambient[] = {0.1, 0.1, 0.1, 1.0};
    				position = "light";
    				direction = "lightEnd";
    				hitpoint = "light";
    				selection = "light";
    				sourceSize = 0.1;
    				size = 0.1;
    				brightness = 1.0;		};
    		};
    Can this be changed while playing a game executing the value of brightness with Script?

    Please teach if you understand the way.

    Code:
    _light = "#lightpoint" createVehicleLocal pos; 
    
    _light setLightBrightness 0.5; 
    
    _light lightAttachObject [_object, [0,0,0]]

  2. #2
    Nope. SetLightBrightness only works on script created 'lightpoint' objects. You can't manipulate vehicle Reflectors with script.

    You could destroy the light on the searchlight and attach a lightpoint object to it, but it wouldn't have anywhere near the same effect. I don't think you can create directional light sources with script.
    Last edited by Big Dawg KS; Sep 27 2010 at 15:40.
    VBS2 Designer

    Quote Originally Posted by Armored_Sheep View Post
    I like to call Arma a sandbox game that works pretty much like LEGO - you buy it not just because you want to have a nice car from the main picture on its box, do you?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •