06.09.2009, 18:17
Quote:
Originally Posted by [B
Vortex ]
Quote:
|
Код:
SetTimer("CreateLoop",100,1); loop = CreateObject(1608,Ox,Oy,3.000,0,0,0);
Код:
public CreateLoop() { new Float:X, Float:Y,Float:Px,Float:Py; X=(floatmul(floatcos(degree,degrees),radius)); new Float:Temp; Temp =((radius*radius)-floatpower(X,2)); Y= floatsqroot(Temp); Px=floatadd(Ox,X); Py=floatadd(Oy,Y); CreateObject(loop, Px,Py,3.000, 3); SetObjectRot(loop,0,0,degree); return 1; }