SetPlayerAttachedObject using SetObjectMaterial
#1

My function does not work, where I could make a mistake?
OnGameModeInit:
Quote:

new Float:X, Float:Y, Float:Z;
myobject = CreateObject(3026, X, Y, Z+0.5, 0.0, 0.0, 0.0, 300.0);
SetObjectMaterial(myobject, 0, 2048, "CJ_AMMO_POSTERS", "cj_flag2", 0xFFFFFFFF);

OnPlayerSpawn:
Quote:

SetPlayerAttachedObject(playerid, 1, myobject, 1, -0.2, -0.06, 0, 0, 0, 0,1,1,1);

Sorry for my bad english =D
Reply
#2

You can't re-texture an attached object, unfortunately.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)