Jump to content

Recommended Posts

Posted

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

Posted

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.

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

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>

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.