move object bogen

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi Leute,
    habt ihr eine Idee wie man ein Objekt in einem Bogen Bewegen könnte ?
    Vielleicht eine Formel oder ähnliches,
    habe keine Ahnung wie ich das machen könnte.
    Die Formel alleine hilft mir auch nichts,
    weil ich nichts damit anfangen kann.
    pls ein scripting Beispiel.


    also in einem Bogen halt,
    ich hoffe ihr könnt mir das zeigen.


    mfg

  • Okay, wir lassen das mit den Funktionen. Nimm dir das Objekt, und geh irgendwie den Weg lang und mach dabei so viele Koordinaten wie möglich. Der Plan ist, das Objekt immer von einer Koordinate zur nächsten (ohne Unterbrechung) zu bewegen.

  • Das macht die Sache halt noch komplizierter. Du musst trotzdem einmalig die Koordinaten alle in der Rohform so machen, wie es später sein soll.


    Wenn es halt vorm Spieler sein soll, musst du halt noch die Spielerkoordinaten dazu addieren, später im Script.

  • dann währe es klug wenn ich im map editor das erste object auf 0.0 0.0 0.0 setzte oder ?


    //Edit:


    hab jetzt bei 0.0 0.0 0.0 angefangen


    hier die koords


    CreateObject(1974,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (1)
    CreateObject(1974,0.00000000,0.20000000,0.10000000,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (2)
    CreateObject(1974,0.00000000,0.40000001,0.20000000,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (3)
    CreateObject(1974,0.00000000,0.60000002,0.30000001,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (5)
    CreateObject(1974,0.00000000,0.80000001,0.40000001,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (6)
    CreateObject(1974,0.00000000,1.04048097,0.50000000,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (7)
    CreateObject(1974,0.00000000,1.25018895,0.59060359,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (8)
    CreateObject(1974,0.00000000,1.54360473,0.69060361,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (9)
    CreateObject(1974,0.00000000,1.77581179,0.76560366,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (10)
    CreateObject(1974,0.01106439,2.11998653,0.87641454,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (11)
    CreateObject(1974,0.00000000,2.46950316,0.95606041,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (12)
    CreateObject(1974,0.00000000,2.81687522,1.03388560,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (13)
    CreateObject(1974,0.00000000,3.17497015,1.08467233,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (14)
    CreateObject(1974,-0.00376700,3.56945443,1.13467228,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (15)
    CreateObject(1974,0.00000000,3.97493744,1.14073038,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (16)
    CreateObject(1974,0.00000000,4.45128632,1.09467959,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (17)
    CreateObject(1974,0.00000000,4.86809492,0.94449770,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (18)
    CreateObject(1974,0.00000000,5.23607540,0.76222819,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (19)
    CreateObject(1974,0.00000000,5.57123423,0.50473678,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (20)
    CreateObject(1974,0.00000000,5.89177084,0.28513336,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (21)
    CreateObject(1974,0.00000000,6.34883642,0.00000000,0.00000000,0.00000000,0.00000000); //object(kb_golfball) (22)




    wie mach ich da jetzt eine flüssige bewegung dazwischen ?

    Einmal editiert, zuletzt von fenestro ()