Why is GetPlayerCameraFrontVector not working for me?
#6

I'm not very good with algebra to say the least but would i be right in thinking you could use this also to put an object behind a player by doing this?
pawn Код:
object_x = fPX - floatmul(fVX, fScale);
object_y = fPY - floatmul(fVY, fScale);
object_z = fPZ - floatmul(fVZ, fScale);
Sorry for silly question im shit at math need to do a course or something
This code would be usefull for me also. Thanks

Edit,
Quote:
Originally Posted by simon
// A negative scale will inverse the vectors and make them face in the opposite direction.
lol sorry didn't see that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)