I want to create an indoors map (probably in a terran building) where all the lights have gone out, and the player should not be able to see anything. I then want to provide the player with a flashlight as his only means of visibility, that points in the direction the unit is facing, which follows the mouse cursor.
Objects shone on by the flashlight should reflect that light, and solid objects should naturally prevent light from passing through.
Currently we don't have a lot of access to lighting toys, but when they finally populate the doodad list I'm sure there will be some kind of directional light doodad available. You could use that as a flashlight and have it follow the units position around and change it's facing angle to the unit's facing angle. As for reflection, there won't be graphical reflection functionality but you can use code/Triggers to calculate if an object is having that flashlight shown onto it and then create lights for that object to make it appear it is reflecting light. For making objects prevent light, since you would be using a doodad as the light, it would be impossible to dynamically prevent any light the doodad would be generating short of destroying it, so you would need to just make walls that out-range the flashlights rays.
Short Answer is this would not be possible with a simple button click here or there, an engine or framework would need to be built for it.
Reflections only work when you have the lighting option in the visuals menu on at least high.
Any other way will have to work with fog of war or tiny black units that you hide/unhide with calculations etc.
I share the same ambitions of map design and I have found our salvation! Check out the actor & behavior titled "raynor flashlight" in the campaign module, its *exactly* what we're after. I was playing around with it and you can adapt that to fit this situation and many others very easily. :)
PS: Screw low end systems that can't even do dynamic light mapping, dark maps + sweet lighting effects rock.
Rollback Post to RevisionRollBack
As long as the instructions for hacking locked map exists on this site, I'm avoiding this scene.