05.04.2012, 09:28
Very good tutorial, helped me a lot. But the only bad thing, if I change an object's texture, it's always very dark. The code I'm using is:
It replaces an object ID 3095 floor (that platform from Area 51, which was opening to fly away with a jetpack) to grass, it looks good at night, but if it's day, it's very dark or in some weather IDs (for example 0 and 1) it's completely black. Is there any chance to make it look like normal (like a picture of texture in TXD workshop)? I was trying to change the materialindex, transparency did nothing, if I change a color (for example from white to green), the texture disappears.
pawn Code:
for(new i = 0; i < 25; i++)
{
SetObjectMaterial(Platform[i],0,19400,"all_walls","desgreengrass",0xFFFFFFFF);
}