SA-MP Forums Archive
Move object isnt moving - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Move object isnt moving (/showthread.php?tid=161348)



Move object isnt moving - -Rebel Son- - 19.07.2010

Im making a filterscript that requires a object to move up and down, and it's not moving -_-

I think i set it up right.



Код:
	drill = CreateObject(16328,588.308,-2195.337,-12.936,0.0,0.0,0.0); // drill.
	SetTimer("DrillDown",6000,1);
	return 1;
}
forward DrillDown();
public DrillDown()
{
MoveObject(drill, 588.308,-2195.337,-12.915,3);
SetTimer("DrillUp",6000,1);
return 1;}
	
forward DrillUp(); //somewhere in the script
public DrillUp()
{
MoveObject(drill, 588.308,-2195.337, -12.936, 3);
return 1;}



Re: Move object isnt moving - Mystique - 19.07.2010

Everything looks fine in my point of view. Can I see the command or whatever executes the moving of the objects?


Re: Move object isnt moving - Kar - 19.07.2010

try using isplayerinrangeofpoint


Re: Move object isnt moving - Code8976Man - 19.07.2010

Objetc: -12.936
Код:
 CreateObject(16328,588.308,-2195.337,-12.936,0.0,0.0,0.0); // drill.
Down Z: -12.915,3
Код:
MoveObject(drill, 588.308,-2195.337,-12.915,3);
Up Z: -12.936
Код:
MoveObject(drill, 588.308,-2195.337, -12.936, 3);
If, Down is in Z: 12.9, and UP is in Z: 12.9 ?? It moves, yes moves of 12.936 to 12.915 ... nothing ...
It will move if UP is in Z Coordinate: 15.9 for example.

Difference between Z up and Z down is 0.015 Wrong Z Coordinate I supose.