Camera pos -
Rks25 - 09.04.2009
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.
Re: Camera pos -
MenaceX^ - 09.04.2009
You got a screen of that? I don't think it's possible.
Re: Camera pos -
Rks25 - 09.04.2009
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.
Re: Camera pos -
darkrider366 - 09.04.2009
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.
Re: Camera pos -
gijsmin - 09.04.2009
i think it was a timer with setting the camera pos
Re: Camera pos -
Weirdosport - 09.04.2009
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.
Re: Camera pos -
darkrider366 - 09.04.2009
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.
Re: Camera pos -
NeRoSiS - 10.04.2009
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.
Re: Camera pos -
Frank_Tesla - 10.04.2009
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.
Re: Camera pos -
Rks25 - 10.04.2009
which one of these is guaranteed?