Does this exist?
#1

Anyone has a function like GetPlayerRotation, so I can use it with SetObjectRot?

I want to "attach" the object to a player, without AttachObjectToPlayer, because AttachObjectToPlayer can't do what I want.

Anyone has something similar, like
pawn Code:
GetPlayerRotation( playerid, &Float:rotx, &Float:roty, &Float:rotz )
? I really need it, any help would be welcome.

And no, GetXYInFrontOfPlayer doesn't do what I want.
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
Reply
#3

Use something with timers so you can check where players is looking ?
Reply
#4

Quote:
Originally Posted by MadeMan
View Post
I need an X&Y rotation, not facing angle.
Reply
#5

You can't get the X or Y rotation of player. Not possible.
Reply
#6

Code:
GetVehicleRotationQuat(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z)
You can only check the rotations of vehicles, not players, since players can't tilt or rotate..
Reply
#7

Oh damn :/, well I guess there must be a custom function, like GetXYInFrontOfPlayer.
Reply
#8

Quote:
Originally Posted by lolumadd_
View Post
players can't tilt or rotate..
Agree. (rotate on X and Y axis)
Reply
#9

It's not possible, only Z rotation is possible to get.
The players never rotate on X or Y angle, when they fall with a parachute their XY rot didn't change, it's just an animation.

EDIT: With SetPlayerAttachedObject you can select the BONE that you want to attach the object to.
Download HOLD-STUDIO by Slice. I'm using that.
Reply
#10

No, no attaching system has what I need...

Well, how is Z rot possible to get? I'd like to know.


EDIT: my fault, I forgot GetPlayerFacingAngle actually gets the Z angle ...


Solved!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)