is there a way
#1

is there a way to move an onbject ie gates when another object is at a coord? i have tryed GetObjectPos and IsObjectMoving(thought this would work, have it set to if the object is not moving) but none of these worked. if anyone has an idea how i would get this done. thanks in advance.
Reply
#2

create the object first at the position that its closed ie a gate.

the make a cmd or go to onplayerupdate and xo:
MoveObject(id,...);

and then it will open, then make another d or set a timer that closes the gate.
Reply
#3

https://sampwiki.blast.hk/wiki/OnObjectMoved

Example:
pawn Код:
public OnObjectMoved(objectid)
{
    if(objectid == myobject1)
    {
        MoveObject(myobject2, ...);
        //etc.
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)