hi , trying to make the model slowly turn to its dummy objects angle, used wrap-value in dbp but on agk im lost , how do i get this to work
for scoutobj= 5000 to 5000
SetObjectLookAt(scoutobj+1000,getobjectworldx(100),getobjectworldy(scoutobj+1000),getobjectworldz(100),0)
if (getobjectangley(scoutobj) < getobjectangley(scoutobj+1000)) then rotateobjectlocaly(scoutobj,1)
if (getobjectangley(scoutobj) > getobjectangley(scoutobj+1000)) then rotateobjectlocaly(scoutobj, -1)
print (getobjectangley(scoutobj) )
print (getobjectangley(scoutobj+1000))
`+speed +position
MoveObjectLocalz(scoutobj,2)
SetObjectPosition(scoutobj ,getobjectx(scoutobj),GetObjectHeightMapHeight( 1, GetObjectX( scoutobj ) , GetObjectZ( scoutobj)) , getobjectz(scoutobj) )
SetObjectPosition(scoutobj+1000,getobjectx(scoutobj),getobjecty(scoutobj),getobjectz(scoutobj))
next scoutobj