Nu te înregistra dacă ești idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Tutorial] Camera Miscatoare
M-au mai intrebat cativa cum faci camera sa se miste
Ma refer la camera cum e la OnPlayerRequestClass
Pai,camera se misca cu functia:
InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT);
playerid - playerul caruia i se misca camera
Float:FromX, Float:FromY, Float:FromZ - Coordonatele X,Y,Z de unde sa inceapa miscarea
Float:ToX, Float:ToY, Float:ToZ - Pana unde sa se miste camera
time - timpul in milisecunde
cut - tipul de miscare
Tipurile de miscare sunt urmatoarele
CAMERA_CUT - Sare de la o pozitie la alta
CAMERA_MOVE - Camera se misca de la o pozitie la alta
Ex:
[pawn]CMD:move ( playerid , params [ ] )
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 0.0, 0.0, 10.0, 1000.0, 1000.0, 30.0, 10000, CAMERA_MOVE);
return 1;
}[/pawn]
//Camera se va misca de la x la y in timp de zece secunde
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules