SetObjectMaterial + Transparent. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetObjectMaterial + Transparent. (
/showthread.php?tid=477638)
SetObjectMaterial + Transparent. -
Johurt - 25.11.2013
Hello. How to make object more transparent?
PHP код:
SetObjectMaterial(id, 0, 18646, "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.
Re: SetObjectMaterial + Transparent. -
Johurt - 26.11.2013
Up...
Re: SetObjectMaterial + Transparent. -
RoboN1X - 26.11.2013
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);
Re: SetObjectMaterial + Transparent. -
Johurt - 27.11.2013
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 :/
Re: SetObjectMaterial + Transparent. -
Johurt - 29.11.2013
Up...
Re: SetObjectMaterial + Transparent. -
AaronFarley - 29.11.2013
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