dr_eyeball 16 Posted July 11, 2008 Q: How can you get the direction your head is facing when using freelook to look around? (which is not player direction) It relates to displaying things on a HMD HUD. UNN has this great 'turret direction' topic using AnimationPhase, which I suspect would also work for the player's head if I knew the head's freelook animation name (if one exists). If anyone can advise either way here too. Share this post Link to post Share on other sites
squeeze 22 Posted July 11, 2008 I did this little test way back, it might set you on the right path if you're good at maths. name a unit s1 init.sqf <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ij =0; while{alive s1}do { sleep .5; ij = ij + 1; Â wpos = positionCameraToWorld getpos s1; Â hint format["%1",wpos]; }; Share this post Link to post Share on other sites
dr_eyeball 16 Posted July 11, 2008 Beauty. Nice solution - pure numbers, no strings. That should work well. Thanks for that info. Share this post Link to post Share on other sites