So to get the position of the front of a player's face I tried using the following:
[lua]ply:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_Head1")) + ply:GetForward() * 8[/lua]
But testing on bots, it doesn't get the position in front of their face, but their head's position and ~50 units north. Am I doing something wrong here?
You could use Player:GetShootPos( ) as the base value, and add ( Player:GetAimVector( ) * DistanceInFront )
[QUOTE=Acecool;41641458]You could use Player:GetShootPos( ) as the base value, and add ( Player:GetAimVector( ) * DistanceInFront )[/QUOTE]
GetAimVector() was what I was looking for, thanks.
Sorry, you need to Log In to post a reply to this thread.