how do you actually ind a dynamic light?my nearest light function only seems to respond to statics..
Code:
function find_nearest_light()

{
temp.pan =360;
temp.tilt=360;
temp.z=3000;
you=scan_entity(my.x,temp);

if your.light==ON
{

temp.x = your.x;
temp.y = your.y;
temp.z = your.z;
my.skill41=float(temp.x);
my.skill42=float(temp.y);
my.skill43=float(temp.z);
my.skill44=float(1);

return ;
}
}



does this seem right? i am supposing that you cant find a dynamic light with scan_entity..but then how?



Sphere Engine--the premier A6 graphics plugin.