FlashLight

Blitz3D Forums/Blitz3D Beginners Area/FlashLight

W(Posted 2005) [#1]
If anyone can help with the creation of a decent flash light that will follow my camera please voice you info or tips, hints!! Please help me out here!! frustration is taking over.....

;anyways here's some of my code
If KeyHit(33)
flash = CreateLight((3),(user\cam))
EntityParent flash,user\model
LightConeAngles flash,0,20
LightRange flash,10
EndIf

my user\model is a pivot for the player in my first person shooter
and the user\cam is well self explanitory

Any help would be appreciated!!!!!


Beaker(Posted 2005) [#2]
You are unlikely to get a good flashlight effect using hardware lights. Try something like this instead:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1000