I decided to share the Lamp function, I use to help minimze the amount of codes for my lights. I hope this is some use, To some of you.
Added ScreenShot
Rem As you can see both call functions are minimal in space
`--------------------------------------------------
AddLamp(6702,574,1,483,15,15,15)
`--------------------------------------------------
Rem First number (6702) is your object number
Rem Make each one unique or it wont load duh..
Rem Now the next 3 set of numbers (574,1,483) is your object position
Rem To place the object anywhere you like in your world
Rem The last 3 set of numbers (15,15,15) Is the scale of your object
`--------------------------------------------------
Rem Now to add a light source (This uses dbpro default light system)
`--------------------------------------------------
AddLight(1,574,21.5,483,23)
`--------------------------------------------------
Rem First number like AddLamp is your object number, or in this case you light number (1)
Rem next 3 set of numbers (574,1,483) is your light's position
Rem You would set it to your lamps position
Rem Last (23) this is the range of your light how far out it will go.
`--------------------------------------------------
Rem AddLamp Function
function AddLamp(obj,x,y,z,sx,sy,sz)
load image "streetlamp.dds",obj
load object "streetlamp.x",obj
position object obj,x,y,z
texture object obj,obj
scale object obj,sx,sy,sz
set object transparency obj,4
ENDFUNCTION
`--------------------------------------------------
Rem AddLight Function
function AddLight(lght,x,xY,z,range)
make light lght
set light range lght,range
position light lght,x,xY,z
ENDFUNCTION
`--------------------------------------------------
.:: Http://DeanWorks.Ca ::.
My software never has bugs. It just develops random features.