25.01.2015, 12:15
Hello,
I would like to report problem with GetPlayerCameraTargetObject. It isn't accure enough.
[ame]www.youtube.com/watch?v=UD61dlE08ks[/ame]
Also I suggest to fix Set(Player)ObjectMaterial. Options such as modelid, txdname, texturename when passing default params (-1 or none) shouldn't changing their texutre to default if it was set before. This should keep changed texture, and change only color for specific texture.
If hard to understand:
First, create an object and set texture:
Now change only color:
The default texture is applied insead of the last one (14777,"int_casinoint3","GB_midbar06").
I would like to report problem with GetPlayerCameraTargetObject. It isn't accure enough.
[ame]www.youtube.com/watch?v=UD61dlE08ks[/ame]
Also I suggest to fix Set(Player)ObjectMaterial. Options such as modelid, txdname, texturename when passing default params (-1 or none) shouldn't changing their texutre to default if it was set before. This should keep changed texture, and change only color for specific texture.
If hard to understand:
First, create an object and set texture:
Код:
SetObjectMaterial(CreateObject(19378, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),0,14777,"int_casinoint3","GB_midbar06",0);
Код:
SetPlayerObjectMaterial(playerid, obj, 0, -1, "none", "none", 0xFFFF0000);