SetObjectMaterial

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
  • Hey.


    Irgendwie wollen meine Wände keine andere Textur bekommen :/


    swatwand[0]=CreateObject(19456,119.69999695,1400.40002441,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (1)
    swatwand[1]=CreateObject(19456,116.69999695,1395.59997559,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (2)
    swatwand[2]=CreateObject(19456,116.40000153,1400.40002441,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (3)
    swatwand[3]=CreateObject(19456,119.69999695,1400.40002441,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (4)
    swatwand[4]=CreateObject(19456,116.39941406,1400.39941406,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (5)
    swatwand[5]=CreateObject(19456,116.69999695,1395.59997559,852.90002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (6)
    swatwand[6]=CreateObject(19456,119.69999695,1410.00000000,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (7)
    swatwand[7]=CreateObject(19456,119.69921875,1400.39941406,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (8)
    swatwand[8]=CreateObject(19456,116.39941406,1410.00000000,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (9)
    swatwand[9]=CreateObject(19456,119.69921875,1410.00000000,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (10)
    swatwand[10]=CreateObject(19456,116.39941406,1410.00000000,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (11)
    swatwand[11]=CreateObject(19456,116.40000153,1419.59997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (12)
    swatwand[12]=CreateObject(19456,119.69999695,1419.59997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (13)
    swatwand[13]=CreateObject(19456,119.69999695,1419.59997559,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (14)
    swatwand[14]=CreateObject(19456,116.39941406,1419.59960938,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (15)
    swatwand[15]=CreateObject(19456,116.40000153,1429.09997559,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (16)
    swatwand[16]=CreateObject(19456,124.43000031,1434.09997559,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (17)
    swatwand[17]=CreateObject(19456,116.40000153,1429.09997559,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (18)
    swatwand[18]=CreateObject(19456,119.69999695,1429.19995117,852.90002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (19)
    swatwand[19]=CreateObject(19456,119.69921875,1429.21972656,849.40002441,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (20)
    swatwand[20]=CreateObject(19456,111.69999695,1433.90002441,849.40002441,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (21)
    swatwand[21]=CreateObject(19456,125.59999847,1418.80004883,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (25)
    swatwand[22]=CreateObject(19456,130.30000305,1414.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (26)
    swatwand[23]=CreateObject(19456,136.39999390,1433.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (27)
    swatwand[24]=CreateObject(19456,124.50000000,1433.00000000,848.20001221,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (28)
    swatwand[25]=CreateObject(19456,127.50000000,1433.09997559,848.20001221,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (29)
    swatwand[26]=CreateObject(19456,138.69999695,1418.80004883,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (30)
    swatwand[27]=CreateObject(19456,125.59960938,1428.39941406,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (31)
    swatwand[28]=CreateObject(19456,138.69921875,1428.39941406,845.00000000,0.00000000,0.00000000,0.00000000); //object(cs_detrok03) (32)
    swatwand[29]=CreateObject(19456,139.89999390,1414.00000000,845.00000000,0.00000000,0.00000000,90.00000000); //object(cs_detrok03) (33)
    for(new w=0;w<sizeof swatwand;w++)
    {
    SetObjectMaterial(swatwand[w], 4, 3051, "lift_drx", "liftdoorsac256", 0);
    // î hab 0-4 probiert!
    }