26.07.2012, 10:40
pawn Код:
// Top
new
theObject;
// Gamemode Init
theObject = CreateObject(...);
MoveObject(theObject, ...);
// Anywhere else
forward @MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);
@MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed) return MoveObject(objectid, X, Y, Z, Speed);
public OnObjectMoved(objectid)
{
new rand = 1000 * random(10); // how many seconds between moving? (10)
SetTimerEx("@MoveObject", rand, 0, "dffff", objectid, /* insert x, y, z */, 3.0);
return 1;
}