What would a good way of doing this be?
You can do this with Chrono's "SetLight" events. They allow you to control whether or not a player is allowed to use their light. Don't confuse it with his "changelight" event, though.
I just need a pistol with a flashlight mounted that can be activated by holding or toggling right click. That way you can shoot and use the pistol at the same time.
You can do that to one team and not the other?
The thing I noticed when I tried this was the light had problems rendering past bricks that I had set as invisible, collideless, and raycastless. I don't think this happened when I tried Marble Man's flashlightNot hitting a brick:[img]http://imageshack.com/scaled/medium/694/j1sv.jpg[/img]Hitting a Float Cube:[img]http://imageshack.com/scaled/medium/580/3r4l.jpg[/img]If there's some way to fix that, then this item would be perfect
Would be handy for a rp/survival thing if it didn't disallow gun reloading