The other NG commands work, and the DLL is loaded as well as the include file, but I get a compile error:
Could Not Understand Command at line ______
`------
`Include Files
`------
#include NGCollision.dba
`------
`Setup the Screen
`------
Autocam Off
Hide Mouse
Set Camera Range 1,3000
Sync On
Sync Rate 100
`------
`Setup Nuclear Glory
`------
StartCollisionPRO()
#Constant TYPE_NGC_ELLIP=1
#Constant TYPE_TARGET = 10
`------
`Setup Variables
`------
health=100
ammo=200
Co2=100
`------
`Top Gun
`------
topgun:
`------
`Load Objects and Matrix
`------
load image "texturestopgun.bmp",600
position camera 0,100,0
make matrix 1,1000,1000,20,20
position matrix 1,0,0,0
prepare matrix texture 1,600,20,20
Fog on
Fog distance 2000
Fog color RGB(0,0,5)
Color Backdrop RGB(0,0,5)
load object "modelsgun1.x",1
yrotate object 1,78
fix object pivot 1
position object 1,0,-7,35
lock object on 1
`Make Paintball
make object sphere 2,3
hide object 2
do
position mouse screen width()/2,screen height()/2
cx# = camera angle x ()
if upkey()=1 then xrotate camera 0 : move camera 4 : xrotate camera cx#
if downkey()=1 then xrotate camera 0 : move camera -4 : xrotate camera cx#
rotate camera camera angle x () + (mousemovey()/2), camera angle y () + (mousemovex()/2), camera angle z ()
if wrapvalue(camera angle x ())>90 and wrapvalue(camera angle x ())<180 then xrotate camera 90
if wrapvalue(camera angle x ())>180 and wrapvalue(camera angle x ())<270 then xrotate camera 270
`------
`Shooting Code
`------
sx#=object position x(1)-5
sy#=camera position y()
sz#=camera position z()+25
ex#=camera position x()
ey#=25
ez#=camera position z()+75
if mouseclick()=1 and ammo>0
ammo=ammo-1
RayIntersectObjectPRO(TYPE_TARGET, 1, sx#, sy#, sz#, ex#, ey#, ez#)
endif
`------
`Check Player Collisions
`------
`------
`Enemy A.I.
`------
Sync
Loop
Can you please check to see if I have not screwed anything up??