Hey ich will eine Ballon fahrt einrichten nur irgentwie starten die beiden Jungs nicht von Boden
Ballon1 = CreateObject(19335, 1659.22, -1707.18, 19.51, 0.00, 0.00, 0.00);
Ballon2 = CreateObject(19338, 1658.18, -1673.46, 21.03, 0.00, 0.00, 0.00);
SetTimer("BallonF1",30000,0);
forward BallonF1();
public BallonF1()
{
MoveObject(Ballon1,1636.0127, -1791.3398, 100.5100,3);
MoveObject(Ballon2,1720.4086, -1666.7737, 100.0300,3);
return 1;
}
public OnObjectMoved(objectid)
{
new Float:X, Float:Y, Float:Z;
new ObjPos = GetObjectPos(objectid, X, Y, Z);
if(ObjPos == 1636.0127, -1791.3398, 100.5100 && objectid == Ballon1)
{
MoveObject(Ballon1,1295.4994, -1581.7301, 180.5100,3);
}
if(ObjPos == 1720.4086, -1666.7737, 100.0300 && objectid == Ballon2)
{
MoveObject(Ballon2,2091.6235, -1760.7412, 200.0300,3);
}
return 1;
}