Object move
#3

Give the object a name, e.g. and get the position
This must be the general (not in a public function!)

pawn Код:
new object, objectmovet, Float:x, Float:y, Float:z;
object = CreateObject(...);
objectmovet = SetTimer("ObjectMove", 100, true);
Create a forward

pawn Код:
forward ObjectMove(objectid);
with a public function

pawn Код:
public ObjectMove(objectid)
{
    new bool:moved;
    moved = false;
    if(GetObjectPos(object, x, y, z) != [the x-y-z coordinates from createobject])
    {
        moved = true;
    }
    else moved = false;
    return 1;
}
Might give some errors but ye, give it a try
Reply


Messages In This Thread
Object move - by billiout - 24.08.2010, 11:36
Re: Object move - by RSX - 24.08.2010, 11:50
Re: Object move - by Claude - 24.08.2010, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)