nгo tб setando texturaaa -
zGuigui2068 - 22.04.2017
PHP код:
public Ruaburacos1()
{
Ruadestruidas = CreateDynamicObject(4146, 1371.00000, -1582.34375, 12.45313, 0.00000, 0.00000, 0.00000);
SetObjectMaterial(Ruadestruidas, 0, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas, 1, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas, 2, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas, 3, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas, 4, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetObjectMaterial(Ruadestruidas, 5, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
//SetObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0);
Buracos[0] = CreateDynamicObject(3694, 1404.57166, -1591.94263, 12.74263, 0.00000, 0.00000, 0.00000);
Buracos[1] = CreateDynamicObject(3694, 1371.67346, -1584.85962, 12.75022, 0.00000, 0.00000, 0.00000);
Buracos[2] = CreateDynamicObject(3694, 1336.20691, -1575.23621, 12.72780, 0.00000, 0.00000, 0.00000);
}
nгo faзo ideia do pq nгo tб setando textura no objeto
Re: nгo tб setando texturaaa -
Adiiti - 22.04.2017
Se usa CreateDynamicObject tem que setar o SetDynamicObjectMaterial
Modo correto:
PHP код:
public Ruaburacos1()
{
Ruadestruidas = CreateDynamicObject(4146, 1371.00000, -1582.34375, 12.45313, 0.00000, 0.00000, 0.00000);
SetDynamicObjectMaterial(Ruadestruidas, 0, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas, 1, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas, 2, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas, 3, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas, 4, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas, 5, 13871, "egg_texts", "easter_egg01", 0xFFFFFFFF);
//SetDynamicObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetDynamicObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0);
//SetDynamicObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0);
Buracos[0] = CreateDynamicObject(3694, 1404.57166, -1591.94263, 12.74263, 0.00000, 0.00000, 0.00000);
Buracos[1] = CreateDynamicObject(3694, 1371.67346, -1584.85962, 12.75022, 0.00000, 0.00000, 0.00000);
Buracos[2] = CreateDynamicObject(3694, 1336.20691, -1575.23621, 12.72780, 0.00000, 0.00000, 0.00000);
}
Re: nгo tб setando texturaaa -
NiloFreitasR1 - 22.04.2017
Como seus objetos estгo em CreateDynamicObject, vк se dб certo colocando:
PHP код:
SetDynamicObjectMaterial( ... );
Re: nгo tб setando texturaaa -
zGuigui2068 - 23.04.2017
SetDynamicObjectMaterial(Ruadestruidas[0], 0, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 1, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 2, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[0], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
pq essa textura n pega ? eu qria uma textura de terraaa
Re: nгo tб setando texturaaa -
Adiiti - 23.04.2017
Estб tudo como 0
Tente assim
PHP код:
SetDynamicObjectMaterial(Ruadestruidas[0], 0, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[1], 1, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[2], 2, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[3], 3, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[4], 4, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);
SetDynamicObjectMaterial(Ruadestruidas[5], 5, 13871, "lahills_border1", "sw_rockgrassB2", 0xFFFFFFFF);