Jump to content
  • 0

Problema MoveObject


Mackenson

Question

Salut. Am o problema cu MoveObject-ul la gate-uri. Orice valoare i-as da la "speed", viteza este aceeasi, uriasa. 

EDIT: Am lasat gate-ul mai jos.

new jailg, jailg1;

forward GJail();

public GJail()
{
	MoveObject(jailg,1752.03223, -1591.23840, 14.27629, 1, 0.0, 0.0, 78.24);
	MoveObject(jailg1,1756.94910, -1592.31287, 14.26984, 1, 0.0, 0.0, -103.36);
	return 1;
}

			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			{
				if(PlayerToPoint(6.0, playerid, 1752.03223, -1591.23840, 14.27629))
				{
					SetTimer("GJail", 3500, 0);
					MoveObject(jailg, 1752.03223, -1591.23840, 14.27630, 1, 0.0, 0.0, 170.00000);
					MoveObject(jailg1, 1756.94910, -1592.31287, 14.26984, 1, 0.0, 0.0, -170.31981);
					format(string, sizeof(string), "%s scoate o telecomanda si deschide poarta.", GetPlayerNameEx(playerid));
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					return 1;
				}
			}

 

Edited by Mackenson
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

scriptul tau nu face nimic tu muti obiectul in aceleasi coordonate deci nu se misca, nu intelg cum spui ca are viteza mare?

EDIT: Greseala mea, nu am observat ca il rotesti

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
17 minutes ago, Mackenson said:

Viteza de rotire este prea mare. Sunt alte coordonate la rotire.

functia moveobject functioneaza in felul in care vrei tu doar pentru coordonatele x y z daca rotesti obiectul fara sa modifici si coordonatele acelea se va teleporta direct, poti sa schimbi inaltimea unpic ca sa se produca animatia incearca codul asta


		MoveObject(jailg, 1752.03223, -1591.23840, 13.27630, 1, 0.0, 0.0, 170.00000);
		MoveObject(jailg1, 1756.94910, -1592.31287, 13.26984, 1, 0.0, 0.0, -170.31981);

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.