23.04.2011, 07:23
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:
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
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; }
Thanks admigo