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



/watch vip - Trevor Gin - 09.03.2015

<REMOVED>


Re: /watch vip - CalvinC - 09.03.2015

I don't understand your problem, change the old coordinates to coordinates in your new location?


Re: /watch vip - Misiur - 09.03.2015

Take a look at the code - see those //OLD CODES comments? Those are lines you have to change. In SetPlayerPos - well, that's the point where the player is "standing", and we don't want him to interfere so we're placing him at -80.0 Z coord. Now "SetPlayerCameraPos" this is point from player looks at coords marked by "SetPlayerCameraLookAt". So that one should be right before your location:
pawn Код:
SetPlayerCameraPos(playerid, 1316.63 - 1.0, -1424.21 - 10.0, 27.13 + 2.0);
I added example offsets: -1.0 to X axis, -10.0 to Y axis, and +2.0 to Z axis. Change them however you want to look at the building.
And you should look directly at it, so simply.
pawn Код:
SetPlayerCameraLookAt(playerid, 1316.63, -1424.21, 27.13);



Re: /watch vip - Trevor Gin - 09.03.2015

<REMOVED>


Re: /watch vip - Trevor Gin - 09.03.2015

<REMOVED>


Re: /watch vip - Misiur - 09.03.2015

Adjust your SetPlayerCameraLookAt values. Stand exactly at the point you want to be looked at, and save its position. No idea about vw, that function sets it to 0, remove that line if you don't want to change virtual world.