[Issue] Object material texture gone if you attach to vehicle - 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: [Issue] Object material texture gone if you attach to vehicle (
/showthread.php?tid=337407)
[Issue] Object material texture gone if you attach to vehicle -
kurta999 - 26.04.2012
This is not bug, but would be very good if you don't need to re-set object material, if you attach it to vehicle.
This happens for me with player object.
Re: [Issue] Object material texture gone if you attach to vehicle -
Kar - 26.04.2012
uh like this?
pawn Код:
PlayerInfo[playerid][pSpecialObjects][3] = CreateObject(1593, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 125.0);
SetObjectMaterial(PlayerInfo[playerid][pSpecialObjects][3], 0, 18837, "mickytextures", "ws_gayflag1", 0);
AttachObjectToVehicle(PlayerInfo[playerid][pSpecialObjects][3], Current_Vehicle[playerid], 0.0, 2.5, -0.4, 0.0, 90.0, 90.0);
or you mean after the texture is streamed to your client? because that code^ works fine
Re: [Issue] Object material texture gone if you attach to vehicle -
Vince - 26.04.2012
Yes, set the texture first, then attach it. Works absolutely fine.
Re: [Issue] Object material texture gone if you attach to vehicle -
kurta999 - 26.04.2012
Anyway i used PlayerObject.
I don't test it with global object
Re: [Issue] Object material texture gone if you attach to vehicle -
Baboon - 28.04.2012
Wel ive se en something like this. For example if you attach two neon lights to eachother and they are all blue. The attached onces become white or like textureless.