InterpolateCameraPos
#1

Hi,

I want to make team selection on the map table inside the control room of area51.

I don't understand the InterpolateCameraPos and LookAt, so if anyone can give me exact coordonates of "On the map table of area51's control room" (where you send nuke) and if possible, directly in this function.
I also need that the camera is facing the team's skin.


Here is the place i want ----> https://ibb.co/9wT9vqg

If you need any code, or image to be more precise, ask me.



Thanks.
Reply
#2

InterpolateCameraPos doesn't seem to be the function you want from what you're saying. InterpolateCameraPos moves the camera from one set of coordinates to another in a set time. It sounds to me you just want it to point at one location.

PHP код:
SetPlayerCameraPos(playerid/*X, Y, Z*/); //This sort of works like your zoom
SetPlayerCameraLookAt(playerid/*X, Y, Z*/); //This will point the camera to the coordinates 
I'd recommend standing a little bit away from the map on the table, type /save and then jump on the map table and type /save again.

When you go inside of your saved positions file inside your documents folder, the first /save you should use for SetPlayerCameraPos and your second /save will be your SetPlayerCameraLookAt

Goodluck
Reply
#3

Download the map editor
https://sampforum.blast.hk/showthread.php?tid=282801
Extract inside gta folder

Open it

Go to the place where you want the sealing camera to be, position it, look for the option:
Copy CameraLookAt() Coords << Click on
It will automatically generate a code for you. Open your pawn and CTRL+V.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)