Mappings ingame bewegen lassen

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
  • Du musst es global sprich oben im Script definieren .


    Hab ich schon geschaft hab vergessen die new über die attach zu bringen neues Problem wie werden die objekte an das dinghy gebracht?
    new objectid = CreateObject(18981, 1244.86450, -2621.29468, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid1 = CreateObject(18981, 1223.07068, -2621.25024, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid2 = CreateObject(7191, 1234.50037, -2633.35620, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid3 = CreateObject(7191, 1234.51978, -2609.20435, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid4 = CreateObject(7191, 1234.59058, -2620.58521, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid5 = CreateObject(18763, 1243.07629, -2610.77393, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid6 = CreateObject(18763, 1240.44861, -2610.80908, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid7 = CreateObject(18763, 1238.07190, -2610.81055, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid8 = CreateObject(18763, 1235.72449, -2610.82764, 3.73020, 0.00000, 0.00000, 0.00000);


    AttachObjectToVehicle(objectid, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid1, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid2, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid3, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid4, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid5, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid6, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid7, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid8, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

  • Code + welches Callback. Ohne Code nix los. ;)


    new objectid = CreateObject(18981, 1244.86450, -2621.29468, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid1 = CreateObject(18981, 1223.07068, -2621.25024, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid2 = CreateObject(7191, 1234.50037, -2633.35620, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid3 = CreateObject(7191, 1234.51978, -2609.20435, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid4 = CreateObject(7191, 1234.59058, -2620.58521, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid5 = CreateObject(18763, 1243.07629, -2610.77393, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid6 = CreateObject(18763, 1240.44861, -2610.80908, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid7 = CreateObject(18763, 1238.07190, -2610.81055, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid8 = CreateObject(18763, 1235.72449, -2610.82764, 3.73020, 0.00000, 0.00000, 0.00000);


    new dinghy1 = CreateVehicle(473,1199.0582,-2615.2734,-0.7072,96.0694, 0.00000, 0.00000);


    AttachObjectToVehicle(objectid, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid1, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid2, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid3, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid4, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid5, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid6, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid7, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid8, 473, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);


    AttachObjectToVehicle(objectid, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid1, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid2, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid3, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid4, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid5, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid6, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid7, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid8, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

  • new objectid = CreateObject(18981, 1244.86450, -2621.29468, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid1 = CreateObject(18981, 1223.07068, -2621.25024, 1.05910, 0.00000, 90.00000, 0.00000);
    new objectid2 = CreateObject(7191, 1234.50037, -2633.35620, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid3 = CreateObject(7191, 1234.51978, -2609.20435, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid4 = CreateObject(7191, 1234.59058, -2620.58521, 2.94250, 0.00000, 0.00000, 90.00000);
    new objectid5 = CreateObject(18763, 1243.07629, -2610.77393, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid6 = CreateObject(18763, 1240.44861, -2610.80908, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid7 = CreateObject(18763, 1238.07190, -2610.81055, 3.73020, 0.00000, 0.00000, 0.00000);
    new objectid8 = CreateObject(18763, 1235.72449, -2610.82764, 3.73020, 0.00000, 0.00000, 0.00000);


    new dinghy = CreateVehicle(473,1197.0582,-2615.2734,-0.7072,96.0694, 0.00000, 0.00000);
    new dinghy1 = CreateVehicle(473,1194.0582,-2615.2734,-0.7072,96.0694, 0.00000, 0.00000);
    new dinghy2 = CreateVehicle(473,1190.0582,-2615.2734,-0.7072,96.0694, 0.00000, 0.00000);
    //etc...


    AttachObjectToVehicle(objectid, dinghy, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid1, dinghy1, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid2, dinghy2, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid3, dinghy3, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid4, dinghy4, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid5, dinghy5, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid6, dinghy6, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid7, dinghy7, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(objectid8, dinghy8, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);


    Wobei hier die Ressourcenfreundlichkeit mal vernachlässigt ist, Hauptsache du verstehst das Prinzip.