Problem rotate object!
#1

heey guys.
I use MidoStream for objects and made a rotate gate just for test.
And i want to let the rotate stop if the rotate y is 90 degrees. And i made this timer:
Код:
forward object();
public object()
{
	new Float:rx,Float:ry,Float:rz;
 	GetStreamObjectRot(policegate1,rx,ry,rz);
	GetStreamObjectRot(policegate2,rx,ry,rz);
	SetStreamObjectRot(policegate1,rx+1,ry+1,rz+1);
	SetStreamObjectRot(policegate2,rx,ry+1,rz);
	if(GetObjectRot(policegate1,rx,ry,rz)==90)
	{
	    KillTimer(barrier);
	}
	return 1;
}
The rotate dont stop. Anyone can help? And if i change the if(GetObjectRot(policegate1,rx,ry,rz)==90) into if(GetStreamObjectRot(policegate1,rx,ry,rz)==90) its says GetStreamObjectRot should return a value.

Thanks admigo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)