Name | Type | is_array | initial_value |
flashlight_blackmask | boolean | No | |
flashlight_length | real | No | |
flashlight_lightpoints | integer | No | |
flashlight_size | real | No | |
temp_group | group | No | |
temp_loc | location | Yes |
The way a cone works (for my flashlight at least), is by making a lot
of points along a line.
Like this:
[U] O O O O O
Where [U] is the unit and O is a light point.
Each of these points have a visibility radius, increasing each step.
/
/ ///
/ ///////
/// / ///////////
/[U]//O//O//O//O////
/// / ///////////
/ ///////
/ ///
/
Yea, something like that. (The "/" demonstrates visible terrain.)
So by increasing the number of light points, you can (theoretically)
achieve a greater resolution of the light cone.
Also, if you increase the maximum distance of the flashlight, you must
also increase the number of light points, or it might just look like
a bunch of circles in front of your unit.