SetObjectMaterial Anfragen und Vorstellungen

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
  • for(new i;i!=sizeof(Boden);i++) SetObjectMaterial(Boden[i],7,16209,"des_cen","des_dirt1");
    Das sollte es sein :thumbup:


    Funktioniert nicht mehr, hab neue Objekte gewählt.


    Spoiler anzeigen
    Boden[0] = CreateObject(8661,1616.6992200,-3814.5996100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[1] = CreateObject(8661,1576.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[2] = CreateObject(8661,1536.6992200,-3814.5996100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[3] = CreateObject(8661,1496.6992200,-3814.5996100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[4] = CreateObject(8661,1456.6992200,-3814.5996100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[5] = CreateObject(8661,1416.6992200,-3814.5996100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[6] = CreateObject(8661,1376.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[7] = CreateObject(8661,1336.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[8] = CreateObject(8661,1296.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[9] = CreateObject(8661,1256.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[10] = CreateObject(8661,1216.6999500,-3814.6001000,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[11] = CreateObject(8661,1616.6699200,-3794.6142600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[12] = CreateObject(8661,1576.6699200,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[13] = CreateObject(8661,1536.6699200,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[14] = CreateObject(8661,1496.6699200,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[15] = CreateObject(8661,1456.6700400,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[16] = CreateObject(8661,1416.6700400,-3794.6147500,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[17] = CreateObject(8661,1376.6700400,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[18] = CreateObject(8661,1336.6700400,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[19] = CreateObject(8661,1296.6700400,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[20] = CreateObject(8661,1256.6700400,-3794.6149900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[21] = CreateObject(8661,1216.6699200,-3794.6142600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[22] = CreateObject(8661,1216.7294900,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[23] = CreateObject(8661,1256.7294900,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[24] = CreateObject(8661,1296.7294900,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[25] = CreateObject(8661,1336.7294900,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[26] = CreateObject(8661,1376.7294900,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[27] = CreateObject(8661,1416.7265600,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[28] = CreateObject(8661,1456.7265600,-3834.5839800,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[29] = CreateObject(8661,1496.7265600,-3834.5839800,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[30] = CreateObject(8661,1536.7270500,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[31] = CreateObject(8661,1576.7265600,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[32] = CreateObject(8661,1616.7280300,-3834.5849600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[33] = CreateObject(8661,1216.7578100,-3854.5693400,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[34] = CreateObject(8661,1256.7569600,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[35] = CreateObject(8661,1296.7580600,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[36] = CreateObject(8661,1336.7580600,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[37] = CreateObject(8661,1376.7559800,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[38] = CreateObject(8661,1416.7559800,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[39] = CreateObject(8661,1456.7550000,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[40] = CreateObject(8661,1496.7559800,-3854.5690900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[41] = CreateObject(8661,1536.7559800,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[42] = CreateObject(8661,1576.7559800,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[43] = CreateObject(8661,1616.7559800,-3854.5700700,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[44] = CreateObject(8661,1616.6409900,-3774.6296400,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[45] = CreateObject(8661,1576.6411100,-3774.6293900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[46] = CreateObject(8661,1536.6419700,-3774.6289100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[47] = CreateObject(8661,1496.6419700,-3774.6289100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[48] = CreateObject(8661,1456.6429400,-3774.6289100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[49] = CreateObject(8661,1416.6420900,-3774.6286600,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[50] = CreateObject(8661,1376.6419700,-3774.6293900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[51] = CreateObject(8661,1336.6419700,-3774.6293900,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[52] = CreateObject(8661,1296.6419700,-3774.6289100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[53] = CreateObject(8661,1256.6409900,-3774.6291500,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[54] = CreateObject(8661,1216.6409900,-3774.6291500,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[55] = CreateObject(8661,1176.7580600,-3854.5688500,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[56] = CreateObject(8661,1176.7299800,-3834.5839800,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[57] = CreateObject(8661,1176.6992200,-3814.5986300,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[58] = CreateObject(8661,1176.6700400,-3794.6140100,4.4000000,0.0000000,0.0000000,0.0000000);
    Boden[59] = CreateObject(8661,1176.6409900,-3774.6298800,4.4000000,0.0000000,0.0000000,0.0000000);
    for(new i;i!=sizeof(Boden);i++) SetObjectMaterial(Boden[i],7,16209,"des_cen","des_dirt1");

  • Bei mir funktionierts ebenfalls nicht :/
    Hab es so gescriptet:


    SHInt[0] = CreateObject(19379, 1470.90283, -1796.85522, 4004.26343, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[1] = CreateObject(19379, 1470.90540, -1806.48218, 4004.26343, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[2] = CreateObject(19379, 1460.40344, -1796.85474, 4004.26343, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[3] = CreateObject(19379, 1470.90283, -1796.85522, 3999.98584, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[4] = CreateObject(19379, 1481.39905, -1787.23389, 3999.98584, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[5] = CreateObject(19379, 1481.39905, -1796.85474, 3999.98584, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);
    SHInt[6] = CreateObject(19379, 1470.90540, -1787.23389, 3999.98584, 0.00000, 90.00000, 0.00000);
    SetObjectMaterial(SHInt[0],3,6322, "law2_roadsb", "rodeo3sjm",0);

    German Projekt Reallife

    87.98.244.35:3434

  • Hey Leute brauche mal eure Hifle bevor ich verzweifle :D


    Habe ein Objekt:




    Ich möchte der umkreisten "Sandstraße" eine andere Textur zuweisen.
    Ich habe alle materialindexe ausprobiert und es hat sich immer etwas geändert doch nicht das was ich wollte.
    Laut SA:MP Mapeditor gibt es Index 18 (18 Tex: des_dirttrack1), was eigentlich diese Straße sein sollte doch es ändert sich nix.


    Code
    OBJEKT = CreateObject( 16178, 407.16409, 2622.96875, 48.88280,   0.00000, 0.00000, 0.00000 );SetObjectMaterial( OBJEKT, 18, 18303, "cs_mountain", "cw2_mounttrail", 0 );



    kann wer helfen?