SA-MP Forums Archive
How to do this? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to do this? (/showthread.php?tid=73766)



How to do this? - Rks25 - 17.04.2009

Guys, a bit hard to explain.

A 4-door car like washington got this:

1 2
3 4 1=driver, 2=co-driver, 3 & 4 = passengers

I want the camera placed on spot 2, and looking forward than. Including some parts of the interior. How can i do that??


edit: with including some parts of the interior i mean this: that i can still see that i am in a car, and looking forward, outside the window.


Re: How to do this? - Rks25 - 18.04.2009

No one knows this?


Re: How to do this? - MenaceX^ - 18.04.2009

You already opened a topic about that, a while ago. I didn't read replies, but as I understood from this topic you didn't get your answer..


Re: How to do this? - Rks25 - 18.04.2009

Indeed, i didn't got my answer. And i really think it is possible, but dont know how?..


Re: How to do this? - Robbin237 - 18.04.2009

EDIT:
I just got a second idea:
Maybe you can get the driver his position (X, Y, Z) place a little object to the right of him which you cant see, then put the camera facing at it?
______________
Rk_, Last time i was trying arround some with the spectate function, and you might want to try the PlayerSpectatePlayer function. It makes you spectate the player, but when he goes into a car, you will look out of the front window, the only problem you will have is getting it into seat 2.

Heres how you get it to look from the front window:

pawn Код:
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, targetid);
Try it out


Re: How to do this? - DMSOrg - 18.04.2009

If you are driving, use SA Cam Hack


Re: How to do this? - Rks25 - 18.04.2009

So by spectating i can if i am in a car, see throug the front window?


Re: How to do this? - Robbin237 - 18.04.2009

Thats what i said


Re: How to do this? - beckzy - 18.04.2009

Would be possible if there was a GetPlayerVehicleSeatID function


Re: How to do this? - Danut - 18.04.2009

If you spectate a player , and that player will enter the car , you'll see his shouled


Re: How to do this? - Rks25 - 19.04.2009

Oke thanks, i will try than