SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Invisible object has a Silhouette in interiors problem (https://forum.sa-mp.com/showthread.php?t=676061)

zampa 28/05/2020 06:22 PM

Invisible object has a Silhouette in interiors problem
 
I'm trying to create a dummy object but i have to place it in a interior and it shows a silhouette. This happens with all the other objects. It doesn't happen if it's not created in interiors.
Code:

        new col_object;
        col_object = CreateDynamicObject(2690, 2069.56763, -1728.48706, 13.84051, 0.00000, 0.00000, 0.00000, -1, 2);
        SetDynamicObjectMaterial(col_object, 0, 0, "none", "none", 0); //tried hex 0x00000000 too, didn't work.

There's literally nothing wrong with my code so if somebody could help me out i'd appreciate it, this is a weird bug. I even tried using non-dynamic object, same result.
Changing the time/weather didn't work either.
Interior ID in the photo is 2, the object's interior id was also 2.
https://i.imgur.com/oCo6y6E.png

NaS 28/05/2020 09:50 PM

Re: Invisible object has a Silhouette in interiors problem
 
I think there's no way of fixing it. Transparency is pretty broken in interiors. Does this effect also happen if you place it inside a building (so it's not in front of the sky)?

You could also try SetDynamicObjectMaterialText. You can use " " (a space) for the text and background color 0 to make it invisible.

zampa 29/05/2020 11:36 AM

Re: Invisible object has a Silhouette in interiors problem
 
Quote:

Originally Posted by NaS (Post 4148496)
I think there's no way of fixing it. Transparency is pretty broken in interiors. Does this effect also happen if you place it inside a building (so it's not in front of the sky)?

You could also try SetDynamicObjectMaterialText. You can use " " (a space) for the text and background color 0 to make it invisible.

This fixed it, thanks yo. +rep


All times are GMT. The time now is 06:22 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.