Quote:

In AUM there is a script that checks how bright is where your model is(the player) like for hiding in the shadows , use this with setting brightness of the weapon maby ?




THATS EXACTLY WHAT I WANTED TO HERE
I just hadn't found the right syntax until now, but it works as you said.

For all, who have the same problem. Here is the code:

vec_set (temp, my.x);
temp.z -= 1000;
c_trace(my.x,temp,ignore_me + ignore_passable + scan_texture);
local_weapon.red = tex_light;
local_weapon.green = tex_light;
local_weapon.blue = tex_light;