07.05.2014, 17:56
Hello,
I have a code which looks something like this. Basically what I wanted to do was change multiple textures for a single object and ofc it didn't work out the way I imagined it. Could you show me the proper way of scripting things like these for further works? IkIk, the code might look dumb but I was trying to find the possible solution, then I gave up and decided to ask for your advice.
Thanks
I have a code which looks something like this. Basically what I wanted to do was change multiple textures for a single object and ofc it didn't work out the way I imagined it. Could you show me the proper way of scripting things like these for further works? IkIk, the code might look dumb but I was trying to find the possible solution, then I gave up and decided to ask for your advice.
Код:
//Jeff #2 walls stock CustObjectJeff2(objectid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz) // { new Jeff2=CreateDynamicObject(objectid, x, y, z, rx, ry, rz); // SetDynamicObjectMaterial(Jeff2, 7, 14425, "madbedrooms", "ah_wallstyle1", 0); // SetDynamicObjectMaterial(Jeff2, 6, 14425, "madbedrooms", "ah_wallstyle1", 0); // SetDynamicObjectMaterial(Jeff2, 3, 14425, "madbedrooms", "ah_wallstyle1", 0); // SetDynamicObjectMaterial(Jeff2, 2, 14425, "madbedrooms", "ah_wallstyle1", 0); // SetDynamicObjectMaterial(Jeff2, 17, 9362, "sfn_byofficeint", "CJ_WOOD5", 0); //Jeff #2 roof (wood covers) SetDynamicObjectMaterial(Jeff2, 16, 14602, "papaerchaseoffice", "gun_ceiling1", 0); //Jeff #2 roof (white blocks) SetDynamicObjectMaterial(Jeff2, 11, 2817, "gb_bedrmrugs01", "GB_rugbedroom01", 0); //Jeff #2 floor SetDynamicObjectMaterial(Jeff2, 13, 14525, "imy_motel2", "Bow_bar_top", 0xFFAA481A); //Wooden fringe for the walls of the Jeff #2 } public OnFilterScriptInit() { CustObjectJeff2(14506,1292.2497600,-1337.1656500,1086.2578100,0.0000000,0.0000000,0.0000000); // }