SetObjectMaterial + Transparent.
#1

Hello. How to make object more transparent?
PHP код:
SetObjectMaterial(id018646"MatColours""green"0x10FFFFFF); 
If materialcolor 0x10FFFFFF - object doesn't show, if 0x90FFFFFF - object transparent, but so dark.

If transparent < 90 - object doesn't show.



P.S: http://forum.sa-mp.com/showpost.php?...69&postcount=3 - object doesn't show.
EDIT: Is SA-MP bug.
Reply
#2

Up...
Reply
#3

I'm not really good at this but sorry if not working.
Try to change the material texture from "green" with "black" or "white" and then change the hex value for green
pawn Код:
SetObjectMaterial(id, 0, 18646, "MatColours", "white", 0x9000FF00);
or (i think this won't set the color)
pawn Код:
SetObjectMaterial(id, 0, 0, "none", "none", 0xFF00FF00);
Reply
#4

Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
I'm not really good at this but sorry if not working.
Try to change the material texture from "green" with "black" or "white" and then change the hex value for green
pawn Код:
SetObjectMaterial(id, 0, 18646, "MatColours", "white", 0x9000FF00);
or (i think this won't set the color)
pawn Код:
SetObjectMaterial(id, 0, 0, "none", "none", 0xFF00FF00);
Didn't help :/
Reply
#5

Up...
Reply
#6

This may sound stupid, have you tried using a glass texture or a differnt version of a glass texture?
Try using one of the "Otto" windows.

p.s
Btw, thanks for showing me how to make diffrent colored glass objects
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)