Are the lights supposed to turn off when the camera isn't looking at them?


Code:
action light_act(){
ENTITY* light_child = sc_light_create(vector(my.x, my.y, my.z), my.skill4, vector(my.skill1,my.skill2,my.skill3), SC_LIGHT_SPOT | SC_LIGHT_SPECULAR | SC_LIGHT_SHADOW , vector(my.pan, my.tilt-90, my.roll), my.skill5);
	ENTITY* light_child2 = sc_light_create(vector(my.x, my.y, my.z), my.skill4, vector(my.skill1,my.skill2,my.skill3), SC_LIGHT_SPOT | SC_LIGHT_SPECULAR | SC_LIGHT_SHADOW , vector(my.pan, my.tilt+90, my.roll+180), my.skill5);
	
	while(1){wait(1);
		vec_set(light_child.x,you.x);
		light_child.z += 200;
		sc_light_update(light_child);
		vec_set(light_child2.x,you.x);
		//light_child.z -= 12;
		sc_light_update(light_child2); 
}
}



I had to roll the light because it was making shadows in the wrong direcion.. smirk


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com