[Pomoc] CameraPos :D

Započeo __vedran.xyz77, Novembar 21, 2016, 09:20:52 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:UP-RP
Detaljan opis problema:Pa zelim kada igrac ukuca /posao da mu kamera predje preko citave farme i to sam uspio napraviti ali kad dodje do kraja samo tako stoji. E sad ja hocu da se kamera vrati u prvobitno stanje  :D
Dio skripte:Ovo sam stavio
    SCM(playerid, -1, ""HZELENA"[|Efusion|] "SIVA"Uspesno ste se zaposlili kao farmer!");
	    SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mleko /oranje /vrsenje");
	    InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
	    InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

TogglePlayerSpectating(playerid, false);
SetCameraBehindPlayer(playerid);
InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);

Eto , ako ti bude radilo javi se , stavio sam i tvoje kordinate tako da ne moras da se mucis

Citat: 𝕊ð"¼ð•ƒð•€ð•,,𝕆𝕍𝕀â,,, poslato Novembar 21, 2016, 10:10:55 PRE PODNE
TogglePlayerSpectating(playerid, false);
SetCameraBehindPlayer(playerid);
InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);

Eto , ako ti bude radilo javi se , stavio sam i tvoje kordinate tako da ne moras da se mucis
Ne nisam uspio Ali Sam dodao cmd /kameraoff  i onda igracu vrati kameru

Probaj ovako
SCM(playerid, -1, ""HZELENA"[|Efusion|] "SIVA"Uspesno ste se zaposlili kao farmer!");
SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mleko /oranje /vrsenje");
InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);
SetTimerEx("ResetCamera", 15000, false, "i", playerid);


pa onda dodati public

forward ResetCamera(playerid);
public ResetCamera(playerid)
{
         TogglePlayerSpectating(playerid, false);
         SetCameraBehindPlayer(playerid);
         return 1;
}

Citat: Fichoâ,,¢ poslato Novembar 21, 2016, 12:37:11 POSLE PODNE
Probaj ovako
SCM(playerid, -1, ""HZELENA"[|Efusion|] "SIVA"Uspesno ste se zaposlili kao farmer!");
SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mleko /oranje /vrsenje");
InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);
SetTimerEx("ResetCamera", 15000, false, "i", playerid);


pa onda dodati public

forward ResetCamera(playerid);
public ResetCamera(playerid)
{
         TogglePlayerSpectating(playerid, false);
         SetCameraBehindPlayer(playerid);
         return 1;
}

To vec moze , samo sto sam ja stavio gore iznad Interpolatecamerapos i nije mogao izvrsiti nikakvu funkciju a vec preko timera moze ili ispod interpolatecamerapos bi radilo :)

Citat: 𝕊ð"¼ð•ƒð•€ð•,,𝕆𝕍𝕀â,,, poslato Novembar 21, 2016, 13:08:47 POSLE PODNE
Citat: Fichoâ,,¢ poslato Novembar 21, 2016, 12:37:11 POSLE PODNE
Probaj ovako
SCM(playerid, -1, ""HZELENA"[|Efusion|] "SIVA"Uspesno ste se zaposlili kao farmer!");
SCM(playerid, -1, ""HZELENA"Komande posla: "SIVA"/mleko /oranje /vrsenje");
InterpolateCameraPos(playerid,-253.8869, -148.9617, 2.8975,  -218.3963, 222.5384, 38.1888,15000);
InterpolateCameraLookAt(playerid,-253.6591, -147.9840, 2.9325,  -217.9790, 221.6254, 38.0038,15000);
SetTimerEx("ResetCamera", 15000, false, "i", playerid);


pa onda dodati public

forward ResetCamera(playerid);
public ResetCamera(playerid)
{
         TogglePlayerSpectating(playerid, false);
         SetCameraBehindPlayer(playerid);
         return 1;
}

To vec moze , samo sto sam ja stavio gore iznad Interpolatecamerapos i nije mogao izvrsiti nikakvu funkciju a vec preko timera moze ili ispod interpolatecamerapos bi radilo :)
Mislim da nebi radilo jer bi onda prekinulo InterpolateCameraPos i InterpolateCameraPosLookAt
Sa timerom prekida tek kad završi to razgledavanje farme tj 15 sekundi nakon....