Originally Posted by
Robske007a
CInputControl will give you the most control. Pun intended.
You can change your facing instantly by writing a new float to it but it will only rotate the model when running. So you'll have to stop all movement, write value, start movement again.
Your new float value is not send to the server before you start movement (I tested this by constantly facing someone who was running around me - I saw my char face them but for them I stood still)
I know roughly 3 methods to implement facing:
- Calculate new facing, overwrite facing with new facing (Easiest, but sloppy)
- Calculate new facing, start turning L/R (By SendKey or CInputControl) till your facing has reached the new facing. (Used by BS's WOWX I think)
- Calculate new facing, calculate how long the turning will last then start turning for that duration. (Used by Flo's PVP bot)