Posts: 1,072
Threads: 25
Joined: Jun 2007
Reputation:
0
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.
Posts: 3,262
Threads: 30
Joined: Aug 2008
Reputation:
0
You got a screen of that? I don't think it's possible.
Posts: 1,072
Threads: 25
Joined: Jun 2007
Reputation:
0
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.
Posts: 293
Threads: 17
Joined: Aug 2008
Reputation:
0
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.
Posts: 177
Threads: 11
Joined: Aug 2008
Reputation:
0
i think it was a timer with setting the camera pos
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
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.
Posts: 556
Threads: 21
Joined: Feb 2008
Reputation:
0
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.
Posts: 40
Threads: 0
Joined: Nov 2008
Reputation:
0
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.
Posts: 1,072
Threads: 25
Joined: Jun 2007
Reputation:
0
which one of these is guaranteed?