SA-MP Forums Archive
SetPlayerCameraLookAt? - 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: SetPlayerCameraLookAt? (/showthread.php?tid=84080)



SetPlayerCameraLookAt? - hanzen - 28.06.2009

I'm making this hospital system for my gamemode, and while you are at hospital I want you to look at all saints hospital without seeing yourself. How to do this with SetPlayerCameraPos or something?


Re: SetPlayerCameraLookAt? - Grim_ - 28.06.2009

SetPlayerPos - somethign way off like 0.00, 0.00, 0.00
SetPlayerCameraPos - Infront of the hospital
SetPlayerCameraLookAt - Location of the hospital


Re: SetPlayerCameraLookAt? - hanzen - 28.06.2009

How do I find those cordinates? /save?


Re: SetPlayerCameraLookAt? - Grim_ - 28.06.2009

Yes.


Re: SetPlayerCameraLookAt? - lavamike - 28.06.2009

Quote:
Originally Posted by Swift_
SetPlayerPos - somethign way off like 0.00, 0.00, 0.00
SetPlayerCameraPos - Infront of the hospital
SetPlayerCameraLookAt - Location of the hospital
It won't work that way. When you set the players position far away but their screen looking at something else, everything 'unloads' in a way. Like when your driving GTA:SA unloads parts of the map you are not near.

You have to set them close, I usually set players under the map or inside a building or something like that. Then you can use the SetPlayerCameraPos and SetPlayerCameraLookAt


Good Luck!


Re: SetPlayerCameraLookAt? - Grim_ - 28.06.2009

I have done it the way I stated with my scripts many time and no effect as you explained has happend.


Re: SetPlayerCameraLookAt? - hanzen - 28.06.2009

I found out aswell, so I placed them inside the hospital building