[Ayuda] SetObjectMaterial ...
#1

Buenas a Todos, Quiero Cambiarle el color a un objeto con la nueva funcion SetObjectMaterial, pero no se cambia y no se por que Sera :S.

Alguien me podria ayudar ?

Asi coloke:
pawn Код:
SetObjectMaterial(objetoid, 0, 19355, "wall003", "wall003", 0xFF0000AA);
Desde Ya muchas Gracias.
Reply
#2

їCуmo estбs creando el objeto?
Reply
#3

Quote:
Originally Posted by [J]ulian
Посмотреть сообщение
їCуmo estбs creando el objeto?
pawn Код:
objetoid = CreateObject(...);
            AttachObjectToVehicle(objetoid, vehicleid, ...);
            SetObjectMaterial(objetoid, 0, 19355, "wall003", "wall003", 0xFF0000AA);
pero creo ke esta mal esto 0, 19355, "wall003", "wall003" :S me pueden explicar eso, es ke el traductor de ****** traduce cualkier cosa :S xD
Reply
#4

alguien me ayuda? :S
Reply
#5

que tal si usбs SetObjectMaterial antes de atarlo al vehiculo.
Reply
#6

Los datos ingresados "wall003" "wall003" son los correctos?
Reply
#7

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Los datos ingresados "wall003" "wall003" son los correctos?
wall003 es el nombre del objeto segun wiki
Reply
#8

Pero uno es el nombre de la textura y el otro es el nombre del '.txd'.
Reply
#9

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Pero uno es el nombre de la textura y el otro es el nombre del '.txd'.
ah ok, es en el orden como lo dijiste tu? y el 0 ke es ?
Reply
#10

Quote:
Originally Posted by bytytus
Посмотреть сообщение
ah ok, es en el orden como lo dijiste tu? y el 0 ke es ?
Код:
SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)