SA-MP Forums Archive
Invisible object has a Silhouette in interiors problem - 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: Invisible object has a Silhouette in interiors problem (/showthread.php?tid=676061)



Invisible object has a Silhouette in interiors problem - zampa - 28.05.2020

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.



Re: Invisible object has a Silhouette in interiors problem - NaS - 28.05.2020

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.


Re: Invisible object has a Silhouette in interiors problem - zampa - 29.05.2020

Quote:
Originally Posted by NaS
View Post
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