SA-MP Forums Archive
First Person - 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)
+--- Thread: First Person (/showthread.php?tid=475053)



First Person - ValiLucifer - 11.11.2013

Is there any code for First Person Car if you are only passenger?




Re: First Person - AlonzoTorres - 11.11.2013

Set the player's position and his camera's position + set an animation.


Re: First Person - ValiLucifer - 11.11.2013

Anyone?


Re: First Person - -=Dar[K]Lord=- - 11.11.2013

attach object id 19300 to vehicle and use AttachCameraToObject,

For more info

https://sampwiki.blast.hk/wiki/Samp_objects

https://sampwiki.blast.hk/wiki/AttachCameraToObject

When player leaves the car destroy that object and when vehicles respawn destroy object too , you are done


Re: First Person - newbie scripter - 11.11.2013

doesn't he require
pawn Код:
SetPlayerCameraBehind(playerid)
??


Re: First Person - -=Dar[K]Lord=- - 11.11.2013

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
doesn't he require
pawn Код:
SetPlayerCameraBehind(playerid)
??
that will reset the players camera to his back , no first person mode is there in SA-MP so we need to make our own by attaching the players camera to the object. and that object needs to be set inside the vehicle so that it will be a kind of first person look from there