I have this as my current shooting code:
if mouseclick()>0 and dst=0
shot=1
bdst=1
show object 2
position object 2,object position x(1),camera position y()-1,object position z(1)
rotate object 2,camera angle x(),camera angle y(),camera angle z()
endif
if object position x(2)<0 or object position x(2)>4000 or object position z(2)>4000 or object position z(2)<0 or object position y(2)<0 or object position y(2)>1000
hide object 2
dst=0
shot=0
endif
if shot=1
dst=dst+1
bdst=bdst+1
endif
if shot=1
move object 2,100
dst=dst+1
endif
how can I have it shoot the bullet directly from the gun barrrel??
Cheers