hi, im making my very first fps, and am having lots of trouble making a firing mechanism for the gun. Any ideas at how you could put it into this code?
sync on : sync rate 60
fog on
fog distance 1500
hide mouse
load image "C:\Program Files\CShop\textures\Sand\sand1.bmp" ,1
make matrix 1,10000,10000,10,10
prepare matrix texture 1,1,1,1
load object "D:\Source\Gun.x" ,1
position object 1,0,50,0
scale object 1,40,40,40
object_speed#=1
do
x1#= object position x(1)
y1# = object position y(1)
z1#= object position z(1)
oay1#= object angle y(1)
mX# = mousex()
set camera to follow x1#,y1#,z1#,oay1#,5,5,1,1
if upkey() = 1 then move object 1,object_speed#
if downkey() = 1 then move object 1,-object_speed#
if leftkey()=1 then rotate object 1,0,(oay1#)-1,0
if rightkey()=1 then rotate object 1,0,(oay1#)+1,0
sync
loop
thanks for help ,hepy
Hepy