ShinimaHuinya
Новичок
Проблема с SetObjectMaterial, не заменяются текстуры.
Вот код:
Эти стены должны были замениться:
---------- Post added at 12:56 ---------- Previous post was at 12:08 ----------
Разобрался, можно закрывать.
Вот код:
Код:
wallbolnice[0] = CreateObject(19461, 1203.25464, -1319.47400, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[0], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[1] = CreateObject(19461, 1203.25464, -1319.51392, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[1], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[2] = CreateObject(19461, 1203.25464, -1309.87524, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[2], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[3] = CreateObject(19461, 1203.25464, -1309.87524, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[3], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[4] = CreateObject(19461, 1205.84546, -1305.12195, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[4], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[5] = CreateObject(19461, 1205.84546, -1305.12195, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[5], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[6] = CreateObject(19461, 1191.05151, -1305.12195, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[6], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[7] = CreateObject(19461, 1191.05151, -1305.12195, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[7], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[8] = CreateObject(19461, 1198.45435, -1324.22974, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[8], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[9] = CreateObject(19461, 1198.45435, -1324.22974, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[9], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[10] = CreateObject(19461, 1193.55664, -1319.51392, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[10], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[11] = CreateObject(19461, 1193.55664, -1319.51392, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[11], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[12] = CreateObject(19461, 1193.55664, -1309.87524, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[12], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[13] = CreateObject(19461, 1193.55664, -1309.87524, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[13], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[14] = CreateObject(19461, 1181.44336, -1305.12195, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[14], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[15] = CreateObject(19461, 1181.44336, -1305.12195, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[15], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[16] = CreateObject(19461, 1182.52417, -1300.28821, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[16], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[17] = CreateObject(19461, 1182.52417, -1300.28821, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[17], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[18] = CreateObject(19461, 1182.52417, -1290.65906, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[18], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[19] = CreateObject(19461, 1182.52417, -1290.65906, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[19], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[20] = CreateObject(19461, 1187.36670, -1286.11389, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[20], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[21] = CreateObject(19461, 1187.36670, -1286.11389, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[21], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[22] = CreateObject(19461, 1196.93066, -1286.11389, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[22], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[23] = CreateObject(19461, 1196.93066, -1286.11389, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[23], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[24] = CreateObject(19461, 1206.46875, -1286.11389, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[24], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[25] = CreateObject(19461, 1206.46875, -1286.11389, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[25], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[26] = CreateObject(19461, 1215.98975, -1286.11389, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[26], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[27] = CreateObject(19461, 1215.98975, -1286.11389, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[27], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[28] = CreateObject(19461, 1213.81824, -1291.01611, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[28], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[29] = CreateObject(19461, 1213.81140, -1290.99731, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[29], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[30] = CreateObject(19461, 1213.81824, -1300.36609, 1011.19128, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[30], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[31] = CreateObject(19461, 1213.81824, -1300.36609, 1014.68231, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(wallbolnice[31], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[32] = CreateObject(19442, 1196.62415, -1305.27588, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[32], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[33] = CreateObject(19442, 1201.27710, -1305.27588, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[33], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[34] = CreateObject(19442, 1201.27710, -1305.27588, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[34], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[35] = CreateObject(19442, 1196.62415, -1305.27588, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[35], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[36] = CreateObject(19442, 1201.27710, -1304.91589, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[36], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[37] = CreateObject(19442, 1201.27710, -1304.91589, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[37], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[38] = CreateObject(19442, 1196.62415, -1304.91589, 1014.68231, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[38], 10, 5413, "motel_lae", "fakestone1_LA", 0);
wallbolnice[39] = CreateObject(19442, 1196.62415, -1304.91589, 1011.19128, 0.00000, 0.00000, 90.00000);
SetObjectMaterial(wallbolnice[39], 10, 5413, "motel_lae", "fakestone1_LA", 0);
Эти стены должны были замениться:
---------- Post added at 12:56 ---------- Previous post was at 12:08 ----------
Разобрался, можно закрывать.
