Posts: 44
Threads: 4
Joined: Nov 2010
Reputation:
0
I am trying to make a minigun object attached to a maverick follow wherever the pilot's camera is facing. I've tried using GetPlayerCameraVector, GetPlayerCamera, etc.. But I cannot figure out how to calculate the required xrot,yrot,and zrot to face wherever the camera is facing (like rhino and hose on firetruck).
Does anybody have any idea how to do this? Thanks.
Posts: 44
Threads: 4
Joined: Nov 2010
Reputation:
0
GetPlayerFacingAngle does not return the CAMERA.. And GetPlayerCameraFrontVector returns values that I need to calculate somehow, but I do not know how.. which I am trying to find out.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Have you tried using "SetPlayerHoldingObject" and offsetting the object to the position you want? Not the answer to your question, but maybe a solution to your problem.
Note: The "SetPlayerHoldingObject" functions name has changed in 0.3c.