27.09.2016, 15:29
Tried to re-texture the objects.. and getting them:
Go to SetObjectMaterial lines and look again at the code. CreateObject has 4 parameters (missing 3 last for rotation). The second and third line (of SetObjectMaterial function) have the rotation instead of the index and the rest parameters.
|
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
CreateObject(19463, -2029.32202, -655.87482, 1000.11182, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2024.55408, -651.17999, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2033.87732, -647.01343, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2036.28162, -649.47150, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2038.70215, -651.96942, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2026.92407, -653.62329, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2029.30164, -656.05786, 1003.73383, 0.00000, 90.00000, 46.00000); CreateObject(19463, -2031.72095, -658.54382, 1003.73383, 0.00000, 90.00000, 46.00000);
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF);
Код:
SetObjectMaterial(CreateObject(19463, -2029.32202, -655.87482, 1000.11182, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2024.55408, -651.17999, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2033.87732, -647.01343, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2036.28162, -649.47150, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2038.70215, -651.96942, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2026.92407, -653.62329, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2029.30164, -656.05786, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); SetObjectMaterial(CreateObject(19463, -2031.72095, -658.54382, 1003.73383, RX, RY, RZ), 0, 18202, "w_towncs_t", "hatwall256hi", 0xFFFFFFFF); |