I am working on some 3d editor and wanted to place a light whenever the user places a object type of light inside it, i modelled a light model in blender for the job! but it seems to only create one point light and no more!
function make_light(x#,y#,z#)
loadobject(lightmodelnumber,"light.obj")
setobjectposition(lightmodelnumber,x#,y#,z#)
createLightDirectional(lightID,0,1,0,255,0,0)
createLightPoint(lightID,x#,y#,z#,20,0,255,0)
inc lightID
inc lightmodelnumber
endfunction
Hail to the king, baby!
http://davidjohnwheeler.blogspot.co.uk