oops lol the code wasnt added.
im not sure limbs wold work. Yous see what im doing is first saving values, then pointing the turret at the target (usding point object command) then i tell it to revet to the old x & z, but keep the new y. then i order the cannon object to use the new y and new x.
here is the code:
t=main turret
c= cannon
1=player
function tpoint()
for a= 1 to aoet(1)
t=a+800
c=a+700
ppx#=object position x(1)
ppy#=object position y(1)
ppz#=object position z(1)
th#=object position y(1)
ox#=object angle x(t)
oy#=object angle y(t)
oz#=object angle z(t)
point object t,ppx#,ppy#,ppz#
`point object c,ppx#,ppy#,ppz#
nx#=object angle x(t)
ny#=wrapvalue(object angle y(t)+180)
nz#=object angle z(t)
cx#=newxvalue(object position x(c), ny#, 5)
cz#=newxvalue(object position z(c), ny#, 5)
set cursor 0,0
print ny#
if ny#<90
if ny#<270
nx#=Wrapvalue(nx#+180)
endif
endif
rotate object t,ox#,ny#,oz#
rotate object c,nx#,oy#,nz#
next a
endfunction
AKA Drunken French Munk (the name i use at home)