Jump to content
  • 0

Ajutor ObjectMaterial


Issey

Question

Problema intalnita (descriere): Cand incerc sa inlocuiesc textura unui obiect ramane cea originala .. si nu inteleg de ce
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu): Asta e un exemplu din ce am vrut sa inlocuiesc, prima data am zis ca poate o fi din cauza obiectului , l-am schimbat si la fel ramane originalul in loc sa apara noua textura

 if(!strcmp(cmdtext,"/mapetxd",true))
    {
        new drumds;
        drumds = CreateDynamicObject(8397, -2060.7227, 201.7209, 38.7755,   0.00000, 0.00000, 0.00000);
        SetObjectMaterial(drumds, 0, 19341, "egg_texts", "easter_egg01", 0xFFFFFFFF);
        //Replaces the texture of our object with the texture of object 19341
        return 1;
    }


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
if(!strcmp(cmdtext,"/mapetxd",true))
{
    new drumds = CreateDynamicObject(8397, -2060.7227, 201.7209, 38.7755, 0.00000, 0.00000, 0.00000);
    SetObjectMaterial(drumds, 1, 19341, "egg_texts", "easter_egg01");
    return 1;
}

 

242086.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.