simple turnentity loop problem

Blitz3D Forums/Blitz3D Programming/simple turnentity loop problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am using a sprite (via a camerapick function) to control the rotation of part of a model that has been set up in a parent/child hierarchy.

When the mouse is over the sprite, this triggers a turnentity command to rotate part of the model (rotateentity seems to move the model around global co-ords so I cant use it).

The problem is, I want the model to stop rotating at a particular point, but while the mouse is over the sprite the turnentity command keeps rotating the model.

I have tried various loop structures without success & I now seem to have developed a real mental block about this one. Can anyone point me in the right direction?

Cheers Shawnus