Jump to content

Camera Miscatoare


Rimmon

Recommended Posts

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

Massari e curva mea

Link to comment
Share on other sites

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

Sau poti folosi un "cam editor" pentru ca este mult mai simplu dar totusi, bravo.

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

foarte bun tutorialul ai +1 rep ma ajutat foarte mult

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.