is there a way - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: is there a way (
/showthread.php?tid=411476)
is there a way -
Kristopher_Wasserman - 29.01.2013
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.
Re: is there a way -
Apenmeeuw - 29.01.2013
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.
Re: is there a way -
Threshold - 29.01.2013
https://sampwiki.blast.hk/wiki/OnObjectMoved
Example:
pawn Код:
public OnObjectMoved(objectid)
{
if(objectid == myobject1)
{
MoveObject(myobject2, ...);
//etc.
}
return 1;
}