Jump to content

Question

Posted

Salut! Am incercat sa fac un sistem de racheta(sa ajungi pe luna, etc.). Ei bine, eu as vrea ca in momentul in care racheta ajunge pe luna sa se seteze gravitatia 0.008. Sa fie o functie, gen OnMoon. Are cineva vreo idee cum as putea face asta?

5 answers to this question

Recommended Posts

  • 0
Posted

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted (edited)
1 hour ago, Mister said:

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

Adica ceva de genul:
 

if(IsPlayerInRangeOfPoint(playerid, 50.0, 1347.93, 1445.73, 37.62))
	{
	SetGravity(0.002);
	}
else return SetGravity(0.008);

ar functiona?

 

EDIT: Daca folosesc SetPlayerGravity primesc eroare "symbol not defined".

Edited by BaFFyJunior
  • 0
Posted
On 10/11/2018 at 3:38 PM, Mister said:

Salut, in momentul in care playerul a ajuns in locatia dorita folosesti


    SetPlayerGravity(playerid,0.004);

iar cand ajunge inapoi


    SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie

Multumesc, am rezolvat. Am avut nevoie de un include totusi(pentru a nu primi eroarea "undefined symbol: SetPlayerGravity". Se poate inchide topicul.

Guest
This topic is now closed to further replies.
×
×
  • 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.