Hello,
I need a little help:
I created a bow and an arrow, offcorse I want to shoot with that. All it's ok, but every time when shoot arrow, it's rotating 90, and dont know how to stop. Here are the codes:
rem active bowar
if Mouseclick()=1 and activebow=1
if object exist(3200)= 0 then load object "bowtens/bowarrow.dbo",3200
position object 3200,-12,2,5
rotate object 3200, 0, 0, 80
bowarlife =25
endif
If bowarlife > 0
Dec bowarlife
move object 3300, 150
If bowarlife = 22 then gosub backbow
if bowarlife = 10 then gosub handbow
Endif
backbow:
position object 3200,5,-5,25
rotate object 3200, -35, 8, 80
play sound 9754
return
handbow:
if bow>0 then activebow=1
if bow=0 then return
activeaxe=0
activehammer=0
activesickle=0
activepickaxe=0
activesaw=0
rotxarrow=90
gosub handsclear
Load object "bowtens/bowarrow.dbo", 3200
set object collision off 3200
XRotate Object 3200,0
Fix object pivot 3200
Scale object 3200,5,5,5
position object 3200,5,-5,25
rotate object 3200, -35, 8, 80
Lock object on 3200
position object 3300, 0,-20, 140
rotate object 3300, rotxarrow, 0, 0
fix object pivot 3300
lock object on 3300
rem Set object to camera orientation 3300
return
pls help...
Mihai