Move object isnt moving
#1

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;}
Reply
#2

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

try using isplayerinrangeofpoint
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)