Barrier rotating?
#1

Heey all,

How can i rotate a barrier with MoveObject?
I dont know how the 1000 rot works.

Thanks Admigo
Reply
#2

To smooth rotate a barrier:

When opening, increase its z position by 0.001
When closing, decrease its z position by 0.001
Reply
#3

//to close
MoveObject(obj, x, y, z, 0.1, rx, ry,rz);

//to close
MoveObject(obj, x, y, z+0.01, 0.1, rx, ry,rz);

make sure to change x,y,z,rx,ry,rz to the proper position
Reply
#4

How can i make it?:
Код:
	if (strcmp("/open", cmdtext, true, 10) == 0)
	{
	    new Float:rx,Float:ry,Float:rz;
		MoveObject(barrier, 1544.69995117,-1630.82006836,13.19999981-0.0001, 0.0001, rx, ry, rz-0.0001);
		return 1;
	}
	if (strcmp("/close", cmdtext, true, 10) == 0)
	{
		new Float:rx,Float:ry,Float:rz;
		MoveObject(barrier,1544.69995117,-1630.82006836,13.19999981+0.0001, 0.0001, rx, ry, rz+0.0001);
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)