Posted By: Erick_Castro
Dynamic Light - 08/22/09 03:46
I created an action that make a dynamic light to be on and off in a room.
action luz_random
{
my.lightred = 250;
my.lightgreen = 250;
my.lightblue = 170;
while(1)
{
my.lightrange=200;
sleep(1.5);
my.lightrange=0;
sleep(1.5);
}
}
it works good.
But i see that my gun entity defined in layer 1
is afected for the dynamic light when it is turned ON even when i am in other rooms of my world and separated from walls.
entity gun0
{
type = <el_revolver.mdl>;
ambient = 0;
pan=90;
x= 5;
scale_x=2;
scale_y=2;
scale_z=2;
layer=1;
y= 3;
z= 0;
ammo=0;
numbergun=1;
recargar=1;
}
I dont want that happens , but i dont know why it happens.
Thank you for your help, friends
action luz_random
{
my.lightred = 250;
my.lightgreen = 250;
my.lightblue = 170;
while(1)
{
my.lightrange=200;
sleep(1.5);
my.lightrange=0;
sleep(1.5);
}
}
it works good.
But i see that my gun entity defined in layer 1
is afected for the dynamic light when it is turned ON even when i am in other rooms of my world and separated from walls.
entity gun0
{
type = <el_revolver.mdl>;
ambient = 0;
pan=90;
x= 5;
scale_x=2;
scale_y=2;
scale_z=2;
layer=1;
y= 3;
z= 0;
ammo=0;
numbergun=1;
recargar=1;
}
I dont want that happens , but i dont know why it happens.
Thank you for your help, friends