Camera pos
#1

Can someone help me with this?

I need this urgent.
I got a washington(four-doors)

And through a command i placed someone on the back seat.
The problem now for me is, HE wants to see his face.
Where cna i place the camera than?
He is on the backseat(TIP).

I don't know where to place the camera.

Can anyone help me with this code-creating?

EDIT: it is possible, saw it on server but lost ip.
Reply
#2

You got a screen of that? I don't think it's possible.
Reply
#3

I wish i could find the ip again. IN any case maybe someone also noticed it. But i can guarantee, I saw it, it is possible.
Reply
#4

yes its possible,
you need to get the position of the player,
then
with that position
like
(playerxhere)
then on the setcamera
(playerxhere+10)
thats how you can set cameras.
im sure its like that. i used to use it somehow like that.
Reply
#5

i think it was a timer with setting the camera pos
Reply
#6

If the car was moving it would be using a timer, but it would give quite a crap effect unless the timer was really fast, and this would cause oodles of lag.
Reply
#7

Quote:
Originally Posted by Weirdosport
If the car was moving it would be using a timer, but it would give quite a crap effect unless the timer was really fast, and this would cause oodles of lag.
its because the camera is just set infront of the player or wherever it is.
Reply
#8

Theres a function clled Getxyinfrontofplayer I believ, get the XY then set the camera along the XY by around 2, then define 3 floats for XYZ, Getplayerposition(idofplayersfacetolookat, float1, float2, float 3); then setplayercameralookat(whoyouwanttolookathisface, float1,float2,float3);

I dont have time for an in depth guide sorry, hope I helped.
Reply
#9

It might be a little harder because you cannot use GetPlayerFacingAngle while the player is in the car. But you can use the VehicleZAxis function instead I believe.


Just find a good formula, plug it in, and you should be all set.
Reply
#10

which one of these is guaranteed?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)