Never mind - I made my workaround. Anybody else having problems with Giles animesh and using line pick, do this:
Parse the giles file and let it create the lights as normal.
Then inside your createlights /flares/ whatever function in your main game BB file - right after you've made your lights put this code :
lx#=EntityX (Gilelights\Glight,level)
ly#=EntityY (Gilelights\Glight,level)
lz#=EntityZ (Gilelights\Glight,level)
rlx#=EntityPitch(Gilelights\Glight)
rly#=EntityYaw(Gilelights\Glight)
rlz#=EntityRoll(Gilelights\Glight)
lr#= light\far#/1.3
lrc#= light\r#
lgc#= light\g#
lbc#= light\b#
nulight=CreateLight(2)
PositionEntity nulight,lx#,ly#,lz#
LightRange nulight,lr#
LightColor nulight,lrc#,lgc#,lbc#
FreeEntity (Gilelights\Glight)
then right at the end of the fucntion put this:
FreeEntity level ; note-whatever your level var
level=LoadMesh("E:\blitz3d\mystuff\YOURLEVEL.b3d")
It works so far anyhow :)
linepick will then work with your mesh loaded level file no problems - useful for altering your gravity settings etc..
Hope that's easy enough to follow!
Parse the giles file and let it create the lights as normal.
Then inside your createlights /flares/ whatever function in your main game BB file - right after you've made your lights put this code :
lx#=EntityX (Gilelights\Glight,level)
ly#=EntityY (Gilelights\Glight,level)
lz#=EntityZ (Gilelights\Glight,level)
rlx#=EntityPitch(Gilelights\Glight)
rly#=EntityYaw(Gilelights\Glight)
rlz#=EntityRoll(Gilelights\Glight)
lr#= light\far#/1.3
lrc#= light\r#
lgc#= light\g#
lbc#= light\b#
nulight=CreateLight(2)
PositionEntity nulight,lx#,ly#,lz#
LightRange nulight,lr#
LightColor nulight,lrc#,lgc#,lbc#
FreeEntity (Gilelights\Glight)
then right at the end of the fucntion put this:
FreeEntity level ; note-whatever your level var
level=LoadMesh("E:\blitz3d\mystuff\YOURLEVEL.b3d")
It works so far anyhow :)
linepick will then work with your mesh loaded level file no problems - useful for altering your gravity settings etc..
Hope that's easy enough to follow!