Created
August 9, 2014 18:22
-
-
Save headswe/f19a60f8cb0ea0499b8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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