Hello,
Trying to understand how this works "ang_for_bone", but have some problems.
First I wanted to check bone angles by this function.
So I call ang_for_bone(theTempANG,theEntity,"theBone")
Then I try watch the angles by theTempANG.pan,theTempANG.tilt,theTempANG.roll
Now I try to rotate the bone angles and watch how much the bone is rotated.
ent_bonerotate(theEntity,"theBone",vector(time_step,0,0));
But I can't read the pan angle ???
(It looks like the pan angle is written in tilt angle, because if you rotate the bone by x or y the tilt angle only changes)
The result:
If rotate by x:
ent_bonerotate(theEntity,"theBone",vector(time_step,0,0));
result is in theTempANG.tilt
If rotate by y:
ent_bonerotate(theEntity,"theBone",vector(0,time_step,0));
result is in theTempANG.tilt
If rotate by z:
ent_bonerotate(theEntity,"theBone",vector(0,0,time_step));
result is in theTempANG.roll