Skip to content

Instantly share code, notes, and snippets.

@headswe
Created August 9, 2014 18:22
Show Gist options
  • Save headswe/f19a60f8cb0ea0499b8e to your computer and use it in GitHub Desktop.
Save headswe/f19a60f8cb0ea0499b8e to your computer and use it in GitHub Desktop.
_rightHandPos = (player modelToWorld (player selectionPosition "righthand")) ;
_weaponDir = player weaponDirection currentWeapon player;
_weaponDir = (_weaponDir select 0) atan2 (_weaponDir select 1);
_x = (_rightHandPos select 0) + sin(_weaponDir) * 0.5;
_y = (_rightHandPos select 1) + cos(_weaponDir) * 0.5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment