Hallo,
Ich habe bei meiner Medicbase versucht den Boden mit einem Material zu "beschichten".
Leider klappt das nicht so, wie ich es will.
Hier der Code:
medicboden[0]=CreateDynamicObject(8661, 1175.88, -1364.85, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[1]=CreateDynamicObject(8661, 1175.86, -1324.87, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[2]=CreateDynamicObject(8661, 1165.69, -1300.64, 12.58, 0.00, 0.00, 0.00,-1,-1,-1,5000);
medicboden[3]=CreateDynamicObject(8661, 1125.70, -1300.64, 12.58, 0.00, 0.00, 0.00,-1,-1,-1,5000);
medicboden[4]=CreateDynamicObject(8661, 1155.88, -1324.87, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[5]=CreateDynamicObject(8661, 1155.90, -1364.85, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[6]=CreateDynamicObject(8661, 1135.90, -1324.87, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[7]=CreateDynamicObject(8661, 1135.92, -1364.85, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[8]=CreateDynamicObject(8661, 1115.92, -1324.87, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[9]=CreateDynamicObject(8661, 1115.94, -1364.85, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
medicboden[10]=CreateDynamicObject(8661, 1095.93, -1322.29, 12.57, 0.00, 0.00, 90.00,-1,-1,-1,5000);
for(new i;i<sizeof(medicboden);i++)
{
SetObjectMaterial(medicboden[i], 0, 13691, "bevcunto2_lahills", "ws_patio1", 0xFFFFFFFF);
}
Hier das, was bei rausgekommen ist (nix):
Warum funktioniert das nicht?
lg