Moving object

Started by [RSS]CypS, Dec 23, 2010, 07:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Salut, aj avea si yo o problema.
Cum as putea sa fak ca sa se miste un obiect in continuu, fara sa se opreasca? :-?

Dec 23, 2010, 07:11 PM #1 Last Edit: Dec 23, 2010, 07:13 PM by [GZS]stuntman
GetObjectPos
SetObjectPos


new Float:x,Float:y,Float:z;
GetObjectPos(id_obiect,x,y,z);
if(x == coord.x && y == coord.y && z == coord.z) SetObjectPos(id_obiect,newx,newy,newz);

asta intr-un timer care porneste la OnGameModeInit.

Ar trebui sa mearga ;)), nu-s sigur daca am facut bine la if(.... :D

thanks stuntman ;)
LOCKED